public override void KillMultiTile(int i, int j, int frameX, int frameY) { TileEntities.Crusher crusher = Utility.GetTileEntity <TileEntities.Crusher>(i, j); PanelUI.Instance.CloseUI(crusher); Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType <Items.Crusher>()); crusher.Kill(i, j); }
public override bool NewRightClick(int i, int j) { TileEntities.Crusher crusher = Utility.GetTileEntity <TileEntities.Crusher>(i, j); if (crusher == null) { return(false); } PanelUI.Instance.HandleUI(crusher); return(true); }