2016-09-11 02:42:47 +00:00
|
|
|
From 2a951c9f066b67a6db6a9278353e6e59835eb25f Mon Sep 17 00:00:00 2001
|
2016-04-25 00:56:04 +00:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Sun, 24 Apr 2016 19:49:33 -0500
|
|
|
|
Subject: [PATCH] SPIGOT-1401: Fix dispenser, dropper, furnace placement
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockDispenser.java b/src/main/java/net/minecraft/server/BlockDispenser.java
|
2016-06-09 03:57:14 +00:00
|
|
|
index a1f198b..024ce36 100644
|
2016-04-25 00:56:04 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockDispenser.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockDispenser.java
|
2016-05-12 02:07:46 +00:00
|
|
|
@@ -21,6 +21,9 @@ public class BlockDispenser extends BlockTileEntity {
|
2016-04-25 00:56:04 +00:00
|
|
|
return 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start - Removed override of onPlace that was reversing placement direction when
|
|
|
|
+ // adjacent to another block, which was not consistent with single player block placement
|
|
|
|
+ /*
|
|
|
|
public void onPlace(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
|
|
|
super.onPlace(world, blockposition, iblockdata);
|
|
|
|
this.e(world, blockposition, iblockdata);
|
2016-05-12 02:07:46 +00:00
|
|
|
@@ -50,6 +53,8 @@ public class BlockDispenser extends BlockTileEntity {
|
2016-04-25 00:56:04 +00:00
|
|
|
world.setTypeAndData(blockposition, iblockdata.set(BlockDispenser.FACING, enumdirection).set(BlockDispenser.TRIGGERED, Boolean.valueOf(false)), 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ */
|
|
|
|
+ // Paper end
|
|
|
|
|
2016-05-12 02:07:46 +00:00
|
|
|
public boolean interact(World world, BlockPosition blockposition, IBlockData iblockdata, EntityHuman entityhuman, EnumHand enumhand, @Nullable ItemStack itemstack, EnumDirection enumdirection, float f, float f1, float f2) {
|
2016-04-25 00:56:04 +00:00
|
|
|
if (world.isClientSide) {
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockFurnace.java b/src/main/java/net/minecraft/server/BlockFurnace.java
|
2016-05-12 02:07:46 +00:00
|
|
|
index 61a6b8a..25f7b4b 100644
|
2016-04-25 00:56:04 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockFurnace.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockFurnace.java
|
2016-05-12 02:07:46 +00:00
|
|
|
@@ -20,6 +20,9 @@ public class BlockFurnace extends BlockTileEntity {
|
2016-04-25 00:56:04 +00:00
|
|
|
return Item.getItemOf(Blocks.FURNACE);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start - Removed override of onPlace that was reversing placement direction when
|
|
|
|
+ // adjacent to another block, which was not consistent with single player block placement
|
|
|
|
+ /*
|
|
|
|
public void onPlace(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
|
|
|
this.e(world, blockposition, iblockdata);
|
|
|
|
}
|
2016-05-12 02:07:46 +00:00
|
|
|
@@ -45,6 +48,8 @@ public class BlockFurnace extends BlockTileEntity {
|
2016-04-25 00:56:04 +00:00
|
|
|
world.setTypeAndData(blockposition, iblockdata.set(BlockFurnace.FACING, enumdirection), 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ */
|
|
|
|
+ // Paper end
|
|
|
|
|
2016-05-12 02:07:46 +00:00
|
|
|
public boolean interact(World world, BlockPosition blockposition, IBlockData iblockdata, EntityHuman entityhuman, EnumHand enumhand, @Nullable ItemStack itemstack, EnumDirection enumdirection, float f, float f1, float f2) {
|
2016-04-25 00:56:04 +00:00
|
|
|
if (world.isClientSide) {
|
|
|
|
--
|
2016-09-11 02:42:47 +00:00
|
|
|
2.10.0.windows.1
|
2016-04-25 00:56:04 +00:00
|
|
|
|