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 Jan 5, 2016
1 parent ee6dbc3 commit f8dcc35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vg/civcraft/mc/citadel/command/commands/Acid.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,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 @@ -111,6 +112,9 @@ public boolean execute(CommandSender sender, String[] args) {

block.breakNaturally();

BlockState bs = block.getState();
bs.update(false, true);

// Consider if should simply be an AcidBlockEvent listener. This will do for now.
Utility.reinforcementBroken(p, pRein);
rm.deleteReinforcement(pTopRein);
Expand Down

0 comments on commit f8dcc35

Please sign in to comment.