mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix: Improper detection of virtual double chests (#4738)
This commit is contained in:
parent
d00cab18fd
commit
db5a528965
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ public class DoubleChestInventoryTranslator extends ChestInventoryTranslator {
|
||||||
if (session.getLastInteractionPlayerPosition().equals(session.getPlayerEntity().getPosition())) {
|
if (session.getLastInteractionPlayerPosition().equals(session.getPlayerEntity().getPosition())) {
|
||||||
BlockState state = session.getGeyser().getWorldManager().blockAt(session, session.getLastInteractionBlockPosition());
|
BlockState state = session.getGeyser().getWorldManager().blockAt(session, session.getLastInteractionBlockPosition());
|
||||||
if (!BlockRegistries.CUSTOM_BLOCK_STATE_OVERRIDES.get().containsKey(state.javaId())) {
|
if (!BlockRegistries.CUSTOM_BLOCK_STATE_OVERRIDES.get().containsKey(state.javaId())) {
|
||||||
if (state.block() == Blocks.CHEST || state.block() == Blocks.TRAPPED_CHEST
|
if ((state.block() == Blocks.CHEST || state.block() == Blocks.TRAPPED_CHEST)
|
||||||
&& state.getValue(Properties.CHEST_TYPE) != ChestType.SINGLE) {
|
&& state.getValue(Properties.CHEST_TYPE) != ChestType.SINGLE) {
|
||||||
inventory.setHolderPosition(session.getLastInteractionBlockPosition());
|
inventory.setHolderPosition(session.getLastInteractionBlockPosition());
|
||||||
((Container) inventory).setUsingRealBlock(true, state.block());
|
((Container) inventory).setUsingRealBlock(true, state.block());
|
||||||
|
|
Loading…
Reference in a new issue