2015-07-27 12:20:54 +00:00
|
|
|
From 90cb302d6c181c0f8751bf726b81a69030985e89 Mon Sep 17 00:00:00 2001
|
2014-11-28 01:17:45 +00:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Tue, 30 Sep 2014 21:43:15 +1000
|
|
|
|
Subject: [PATCH] Refactor ItemDoor Place
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/ItemDoor.java b/src/main/java/net/minecraft/server/ItemDoor.java
|
2015-02-28 11:36:22 +00:00
|
|
|
index eef43df..6e92cab 100644
|
2014-11-28 01:17:45 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/ItemDoor.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ItemDoor.java
|
|
|
|
@@ -48,9 +48,11 @@ public class ItemDoor extends Item {
|
|
|
|
BlockPosition blockposition3 = blockposition.up();
|
2015-02-28 11:36:22 +00:00
|
|
|
IBlockData iblockdata = block.getBlockData().set(BlockDoor.FACING, enumdirection).set(BlockDoor.HINGE, flag2 ? BlockDoor.EnumDoorHinge.RIGHT : BlockDoor.EnumDoorHinge.LEFT);
|
2014-11-28 01:17:45 +00:00
|
|
|
|
2015-02-28 11:36:22 +00:00
|
|
|
- world.setTypeAndData(blockposition, iblockdata.set(BlockDoor.HALF, BlockDoor.EnumDoorHalf.LOWER), 2);
|
|
|
|
- world.setTypeAndData(blockposition3, iblockdata.set(BlockDoor.HALF, BlockDoor.EnumDoorHalf.UPPER), 2);
|
2014-11-28 01:17:45 +00:00
|
|
|
- world.applyPhysics(blockposition, block);
|
|
|
|
- world.applyPhysics(blockposition3, block);
|
|
|
|
+ // Spigot start - update physics after the block multi place event
|
2015-02-28 11:36:22 +00:00
|
|
|
+ world.setTypeAndData(blockposition, iblockdata.set(BlockDoor.HALF, BlockDoor.EnumDoorHalf.LOWER), 3);
|
|
|
|
+ world.setTypeAndData(blockposition3, iblockdata.set(BlockDoor.HALF, BlockDoor.EnumDoorHalf.UPPER), 3);
|
2014-11-28 01:17:45 +00:00
|
|
|
+ // world.applyPhysics(blockposition, block);
|
|
|
|
+ // world.applyPhysics(blockposition3, block);
|
|
|
|
+ // Spigot end
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2015-05-09 20:23:26 +00:00
|
|
|
2.1.4
|
2014-11-28 01:17:45 +00:00
|
|
|
|