Update forge, Replace spawn->addEntity, misc fixes in TE's

This commit is contained in:
Vincent Lee committed 2019-06-21 23:43:52 -07:00
1 parent cce2f81d15
commit 070093c9e5
68 files changed
+136 -169

No files matched your search

@@ -218,7 +218,7 @@ public class BlockPistonRelay extends BlockMod implements IWandable, ILexiconabl
world.setBlockState(pos.offset(dir), ModBlocks.pistonRelay.getDefaultState());
else if(!world.isRemote) {
ItemStack stack = new ItemStack(ModBlocks.pistonRelay);
world.spawnEntity(new ItemEntity(world, x + dir.getXOffset(), y + dir.getYOffset(), z + dir.getZOffset(), stack));
world.addEntity(new ItemEntity(world, x + dir.getXOffset(), y + dir.getYOffset(), z + dir.getZOffset(), stack));
}
checkedCoords.add(s);
newPos = new DimWithPos(world.getDimension().getType(), pos.offset(dir));