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
|
loader_version=0.15.11
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.4
|
mod_version=1.5
|
||||||
maven_group=systems.brn
|
maven_group=systems.brn
|
||||||
archives_base_name=Server_storage
|
archives_base_name=Server_storage
|
||||||
|
|
||||||
|
@ -66,8 +66,8 @@ public class StorageScreen extends PagedGui {
|
|||||||
if (clickedElement != null) {
|
if (clickedElement != null) {
|
||||||
ItemStack clickedItem = clickedElement.getItemStack();
|
ItemStack clickedItem = clickedElement.getItemStack();
|
||||||
ItemStack noLoreStack = removeCountFromLore(clickedItem);
|
ItemStack noLoreStack = removeCountFromLore(clickedItem);
|
||||||
if (tryRemoveItemStackFromChests(world, pos, noLoreStack)) {
|
if(this.player.getInventory().insertStack(noLoreStack)){
|
||||||
this.player.getInventory().insertStack(noLoreStack);
|
tryRemoveItemStackFromChests(world, pos, noLoreStack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.updateDisplay();
|
this.updateDisplay();
|
||||||
|
Loading…
Reference in New Issue
Block a user