MohistMC / Mohist

Minecraft Forge Hybrid server implementing the Spigot/Bukkit API, formerly known as Thermos/Cauldron/MCPC+
https://mohistmc.com
GNU General Public License v3.0
1.29k stars 210 forks source link

1.20.1 Coreprotect log spam #3152

Closed funnycubeguy closed 4 months ago

funnycubeguy commented 4 months ago

Coreprotect log spam

https://pastes.dev/x17LLfvPJ0

sanik commented 3 months ago

@Mgazul The problem is that Container itself is null and not CraftCustomInventory, so this does not fix the error...

if (container != null)

Inventory sourceInventory = InventoryOwner.getInventory(container);

If you look at CraftCustomInventory in it

public Location getLocation() { return inventory.getLocation(); } and inventory == null