mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Fix bug #161 - fix for InventoryType.BEACON returning null;
This commit is contained in:
1 parent
3c05abd742
commit
09194b2591
2 files changed
+10
-5
No files matched your search
@@ -135,10 +135,12 @@ public class User {
|
||||
}
|
||||
|
||||
public void restore(Inventory inventory) {
|
||||
inventory.clear();
|
||||
for(ItemStack is : inventorySnapshot) {
|
||||
if(is != null) {
|
||||
inventory.addItem(is);
|
||||
if(inventorySnapshot != null) {
|
||||
inventory.clear();
|
||||
for(ItemStack is : inventorySnapshot) {
|
||||
if(is != null) {
|
||||
inventory.addItem(is);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user