summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockMinecartDetector.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockMinecartDetector.patch')
-rw-r--r--nms-patches/BlockMinecartDetector.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/BlockMinecartDetector.patch b/nms-patches/BlockMinecartDetector.patch
index 625436fc..56c9cd09 100644
--- a/nms-patches/BlockMinecartDetector.patch
+++ b/nms-patches/BlockMinecartDetector.patch
@@ -1,6 +1,6 @@
--- a/net/minecraft/server/BlockMinecartDetector.java
+++ b/net/minecraft/server/BlockMinecartDetector.java
-@@ -4,6 +4,8 @@
+@@ -5,6 +5,8 @@
import java.util.List;
import java.util.Random;
@@ -9,7 +9,7 @@
public class BlockMinecartDetector extends BlockMinecartTrackAbstract {
public static final BlockStateEnum<BlockMinecartTrackAbstract.EnumTrackPosition> SHAPE = BlockStateEnum.a("shape", BlockMinecartTrackAbstract.EnumTrackPosition.class, new Predicate() {
-@@ -64,6 +66,17 @@
+@@ -65,6 +67,17 @@
flag1 = true;
}
@@ -26,4 +26,4 @@
+
if (flag1 && !flag) {
world.setTypeAndData(blockposition, iblockdata.set(BlockMinecartDetector.POWERED, Boolean.valueOf(true)), 3);
- world.applyPhysics(blockposition, this);
+ this.b(world, blockposition, iblockdata, true);