1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Make real container check less strict

Closes https://github.com/GeyserMC/Geyser/issues/5912
This commit is contained in:
onebeastchris
2025-10-26 19:39:14 +01:00
parent 75f3f2c6ce
commit 7375b748d7

View File

@@ -162,7 +162,7 @@ public class BlockInventoryHolder extends InventoryHolder {
* a block to hold the inventory that's wildly out of range.
*/
protected boolean checkInteractionPosition(GeyserSession session) {
return session.getLastInteractionPlayerPosition().equals(session.getPlayerEntity().getPosition());
return session.getLastInteractionPlayerPosition().distance(session.getPlayerEntity().getPosition()) < 2;
}
/**