Artifacts
This commit is contained in:
parent
3795eabb4a
commit
9d897760a2
|
|
@ -187,12 +187,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"))
|
||||||
{
|
|
||||||
GlStateManager.pushMatrix();
|
|
||||||
GlStateManager.translate(1, 0, 0);
|
|
||||||
GlStateManager.popMatrix();
|
|
||||||
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.setEntityItemStack(stack);
|
item.setEntityItemStack(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