geforkt von Mirrors/Paper
28414e7e28
6669d6ecd2b b2740df50bb bf71dc61149 fba27a2ea80 92ee7e7f8ec b28f0d3de23 4beb4ac3918 0ddb6f3dde8 afe301fe892 b8f6402bbbe
30 Zeilen
1.4 KiB
Diff
30 Zeilen
1.4 KiB
Diff
From 93d8b11854923443d2d26adbf395e5ade019c98c Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 6f0a065..bca1bc9 100644
|
|
--- 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();
|
|
IBlockData iblockdata = block.getBlockData().set(BlockDoor.FACING, enumdirection).set(BlockDoor.HINGE, flag2 ? EnumDoorHinge.RIGHT : EnumDoorHinge.LEFT);
|
|
|
|
- world.setTypeAndData(blockposition, iblockdata.set(BlockDoor.HALF, EnumDoorHalf.LOWER), 2);
|
|
- world.setTypeAndData(blockposition3, iblockdata.set(BlockDoor.HALF, EnumDoorHalf.UPPER), 2);
|
|
- world.applyPhysics(blockposition, block);
|
|
- world.applyPhysics(blockposition3, block);
|
|
+ // Spigot start - update physics after the block multi place event
|
|
+ world.setTypeAndData(blockposition, iblockdata.set(BlockDoor.HALF, EnumDoorHalf.LOWER), 3);
|
|
+ world.setTypeAndData(blockposition3, iblockdata.set(BlockDoor.HALF, EnumDoorHalf.UPPER), 3);
|
|
+ // world.applyPhysics(blockposition, block);
|
|
+ // world.applyPhysics(blockposition3, block);
|
|
+ // Spigot end
|
|
}
|
|
}
|
|
--
|
|
2.1.0
|
|
|