Replace deprecated ItemStack constructor in ArenaImpl.
This commit is contained in:
@@ -844,7 +844,7 @@ public class ArenaImpl implements Arena
|
|||||||
private void clearInv(Player p) {
|
private void clearInv(Player p) {
|
||||||
InventoryView view = p.getOpenInventory();
|
InventoryView view = p.getOpenInventory();
|
||||||
if (view != null) {
|
if (view != null) {
|
||||||
view.setCursor(new ItemStack(0));
|
view.setCursor(new ItemStack(Material.AIR));
|
||||||
view.getBottomInventory().clear();
|
view.getBottomInventory().clear();
|
||||||
view.close();
|
view.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user