Fix Item Cube History.

This commit is contained in:
sigonasr2 2016-08-21 15:19:29 -05:00
parent 802768a4fb
commit 4eb3b7c804
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -3566,8 +3566,12 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
ItemStack item = ev.getCursor(); ItemStack item = ev.getCursor();
if (item.getType()==Material.AIR) { if (item.getType()==Material.AIR) {
//ItemCubeWindow.removeAllItemCubeWindows((Player)ev.getWhoClicked()); //ItemCubeWindow.removeAllItemCubeWindows((Player)ev.getWhoClicked());
Player p = (Player)ev.getWhoClicked();
pd = PlayerStructure.GetPlayerStructure(p);
pd.opened_another_cube=true;
ItemCubeWindow.popItemCubeWindow((Player)ev.getWhoClicked()); ItemCubeWindow.popItemCubeWindow((Player)ev.getWhoClicked());
ev.getWhoClicked().closeInventory(); ev.getWhoClicked().closeInventory();
pd.opened_another_cube=false;
} }
} }