Fix a bug that destroyed items with a full inventory
This commit is contained in:
parent
7aba187f07
commit
33799eebd4
@ -8,7 +8,7 @@ yarn_mappings=1.20.6+build.3
|
||||
loader_version=0.15.11
|
||||
|
||||
# Mod Properties
|
||||
mod_version=1.4
|
||||
mod_version=1.5
|
||||
maven_group=systems.brn
|
||||
archives_base_name=Server_storage
|
||||
|
||||
|
@ -66,8 +66,8 @@ public class StorageScreen extends PagedGui {
|
||||
if (clickedElement != null) {
|
||||
ItemStack clickedItem = clickedElement.getItemStack();
|
||||
ItemStack noLoreStack = removeCountFromLore(clickedItem);
|
||||
if (tryRemoveItemStackFromChests(world, pos, noLoreStack)) {
|
||||
this.player.getInventory().insertStack(noLoreStack);
|
||||
if(this.player.getInventory().insertStack(noLoreStack)){
|
||||
tryRemoveItemStackFromChests(world, pos, noLoreStack);
|
||||
}
|
||||
}
|
||||
this.updateDisplay();
|
||||
|
Loading…
Reference in New Issue
Block a user