mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-26 18:47:57 +01:00
Don't check if we don't watch.
This commit is contained in:
parent
a272316301
commit
dae25c2f2d
@ -63,7 +63,7 @@ public class BlockListener implements Listener {
|
|||||||
Block futureEmptyBlock = event.getBlock().getRelative(direction); // Block that would be air after piston is finished
|
Block futureEmptyBlock = event.getBlock().getRelative(direction); // Block that would be air after piston is finished
|
||||||
|
|
||||||
for (Block b : blocks) {
|
for (Block b : blocks) {
|
||||||
if (mcMMO.placeStore.isTrue(b)) {
|
if (BlockUtils.shouldBeWatched(b.getState()) && mcMMO.placeStore.isTrue(b)) {
|
||||||
b.getRelative(direction).setMetadata(mcMMO.blockMetadataKey, mcMMO.metadataValue);
|
b.getRelative(direction).setMetadata(mcMMO.blockMetadataKey, mcMMO.metadataValue);
|
||||||
if (b.equals(futureEmptyBlock)) {
|
if (b.equals(futureEmptyBlock)) {
|
||||||
mcMMO.placeStore.setFalse(b);
|
mcMMO.placeStore.setFalse(b);
|
||||||
|
Loading…
Reference in New Issue
Block a user