Created
February 25, 2015 20:18
-
-
Save perkinslr/d1c7975dddcb8d4e5466 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/micdoodle8/mods/galacticraft/core/tick/TickHandlerServer.java b/src/main/java/micdoodle8/mods/galacticraft/core/tick/TickHandlerServer.java | |
index 4a0b01c..dff3f72 100644 | |
--- a/src/main/java/micdoodle8/mods/galacticraft/core/tick/TickHandlerServer.java | |
+++ b/src/main/java/micdoodle8/mods/galacticraft/core/tick/TickHandlerServer.java | |
@@ -460,7 +460,9 @@ public class TickHandlerServer | |
BlockVec3 changePosition = change.getChangePosition(); | |
if (changePosition != null) | |
{ | |
- world.setBlock(changePosition.x, changePosition.y, changePosition.z, change.getChangeID(), change.getChangeMeta(), 2); | |
+ if (change.validateChange(world.getBlock(changePosition.x, changePosition.y, changePosition.z), world.getBlockMetadata(changePosition.x, changePosition.y, changePosition.z))){ | |
+ world.setBlock(changePosition.x, changePosition.y, changePosition.z, change.getChangeID(), change.getChangeMeta(), 2); | |
+ } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment