mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Fix double/drag prediction in player inventory
This commit is contained in:
parent
3423562be8
commit
7f0f35b060
@ -358,6 +358,7 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
setCursorItem(clickResult.getCursor());
|
setCursorItem(clickResult.getCursor());
|
||||||
|
update(); // FIXME: currently not properly client-predicted
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -370,6 +371,7 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
setCursorItem(clickResult.getCursor());
|
setCursorItem(clickResult.getCursor());
|
||||||
|
update(); // FIXME: currently not properly client-predicted
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user