Skip to content
This repository was archived by the owner on May 13, 2021. It is now read-only.

Commit

Permalink
Fix client crash on servers when places Soul Cages (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
TehNut committed Apr 28, 2018
1 parent 8b94851 commit a300e49
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public TileEntitySoulCage() {

@Override
public void update() {
if (getWorld().isRemote)
return;

ActionResult<Binding> result = canSpawn();
if (result.getType() != EnumActionResult.SUCCESS) {
setState(false);
Expand All @@ -58,7 +61,7 @@ public void update() {
IBlockState state = getWorld().getBlockState(getPos());
getWorld().notifyBlockUpdate(getPos(), state, state, 3);

if (!world.isRemote && activeTime % result.getResult().getTier().getCooldown() == 0)
if (activeTime % result.getResult().getTier().getCooldown() == 0)
spawnEntities();
}

Expand Down

0 comments on commit a300e49

Please sign in to comment.