Merge branch 'master' into 1.12

This commit is contained in:
Tschipp 2017-11-04 11:39:23 +01:00
commit 5ccc660fef
2 changed files with 3 additions and 3 deletions

View File

@ -188,9 +188,7 @@ public class RenderEvents
if (!stack.isEmpty() && stack.getItem() == RegistrationHandler.itemTile && ItemTile.hasTileData(stack))
{
if(Loader.isModLoaded("realrender") || Loader.isModLoaded("rfpr"))
{
return;
}
Block block = ItemTile.getBlock(stack);
NBTTagCompound tag = ItemTile.getTileData(stack);

View File

@ -258,7 +258,9 @@ public class ItemEvents
EntityItem item = new EntityItem(world);
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());
world.spawnEntity(item);
}