Skip to content

Instantly share code, notes, and snippets.

@dazsim
Created June 14, 2016 11:49
Show Gist options
  • Save dazsim/3c7511c3fa5f5ed28818633753450103 to your computer and use it in GitHub Desktop.
Save dazsim/3c7511c3fa5f5ed28818633753450103 to your computer and use it in GitHub Desktop.
code to trigger update after processing event (Adding/removing something from barrel)
public void updateBarrel(TileEntityBarrel t)
{
NBTTagCompound compound = new NBTTagCompound();
t.writeToNBT(compound );
t.markDirty();
t.getWorld().tickUpdates(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment