Skip to content

Commit

Permalink
Forcing physics update via blockstate.
Browse files Browse the repository at this point in the history
Something to test on CivTest -- first attempt at resolving #157
  • Loading branch information
ProgrammerDan committed Aug 23, 2016
1 parent c8f03c0 commit f9f935f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vg/civcraft/mc/citadel/command/commands/Acid.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.BlockState;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.util.BlockIterator;
Expand Down Expand Up @@ -122,6 +123,8 @@ public boolean execute(CommandSender sender, String[] args) {
Utility.reinforcementBroken(p, pRein);
rm.deleteReinforcement(pTopRein);

BlockState bs = block.getState();
bs.update(false, true);
}
return true;
}
Expand Down

0 comments on commit f9f935f

Please sign in to comment.