Merge branch 'master' into 1.12
This commit is contained in:
commit
5ccc660fef
|
|
@ -188,9 +188,7 @@ public class RenderEvents
|
||||||
if (!stack.isEmpty() && stack.getItem() == RegistrationHandler.itemTile && ItemTile.hasTileData(stack))
|
if (!stack.isEmpty() && stack.getItem() == RegistrationHandler.itemTile && ItemTile.hasTileData(stack))
|
||||||
{
|
{
|
||||||
if(Loader.isModLoaded("realrender") || Loader.isModLoaded("rfpr"))
|
if(Loader.isModLoaded("realrender") || Loader.isModLoaded("rfpr"))
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
Block block = ItemTile.getBlock(stack);
|
Block block = ItemTile.getBlock(stack);
|
||||||
NBTTagCompound tag = ItemTile.getTileData(stack);
|
NBTTagCompound tag = ItemTile.getTileData(stack);
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,9 @@ public class ItemEvents
|
||||||
|
|
||||||
EntityItem item = new EntityItem(world);
|
EntityItem item = new EntityItem(world);
|
||||||
item.setItem(stack);
|
item.setItem(stack);
|
||||||
BlockPos pos = player.getPosition();
|
BlockPos pos = original.getBedLocation();
|
||||||
|
if(pos == null)
|
||||||
|
pos = player.getPosition();
|
||||||
item.setPosition(pos.getX(), pos.getY(), pos.getZ());
|
item.setPosition(pos.getX(), pos.getY(), pos.getZ());
|
||||||
world.spawnEntity(item);
|
world.spawnEntity(item);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user