mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-20 15:29:27 +00:00
Make real container check less strict
Closes https://github.com/GeyserMC/Geyser/issues/5912
This commit is contained in:
@@ -162,7 +162,7 @@ public class BlockInventoryHolder extends InventoryHolder {
|
|||||||
* a block to hold the inventory that's wildly out of range.
|
* a block to hold the inventory that's wildly out of range.
|
||||||
*/
|
*/
|
||||||
protected boolean checkInteractionPosition(GeyserSession session) {
|
protected boolean checkInteractionPosition(GeyserSession session) {
|
||||||
return session.getLastInteractionPlayerPosition().equals(session.getPlayerEntity().getPosition());
|
return session.getLastInteractionPlayerPosition().distance(session.getPlayerEntity().getPosition()) < 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user