Merged bug fixed from 1.0.4

This commit is contained in:
CrazyPants committed 2014-05-15 16:04:58 +08:00
1 parent dd26706383
commit 6aa22620b5
4 files changed
+29 -14

No files matched your search

+5
View File
@@ -66,6 +66,11 @@ public class Util {
// derived from ItemBlock.onItemUse
public static BlockCoord canPlaceItem(ItemStack itemUsed, Block blockIdToBePlaced, EntityPlayer player, World world, int x, int y, int z, int side) {
if(blockIdToBePlaced == null) {
return null;
}
Block block = world.getBlock(x, y, z);
if(block == Blocks.snow_layer && (world.getBlockMetadata(x, y, z) & 7) < 1) {