public override void RightClick(int i, int j) { int left = i - (Main.tile[i, j].frameX / 16) % 2; int top = j; int index = mod.GetTileEntity("VFanE").Find(left, top); if (index == -1) { return; } VFanE VfanE = (VFanE)TileEntity.ByID[index]; VfanE.switchBlow = true; }
public override void KillMultiTile(int i, int j, int frameX, int frameY) { Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("VFan")); int left = i - (Main.tile[i, j].frameX / 16) % 2; int top = j; int index = mod.GetTileEntity("VFanE").Find(left, top); if (index == -1) { return; } VFanE VfanE = (VFanE)TileEntity.ByID[index]; VfanE.blowing = false; VfanE.Kill(i, j); }