mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-27 14:34:57 +01:00
More robust inventory handling
This commit is contained in:
parent
613be0d841
commit
63b5f7d338
1 changed files with 2 additions and 1 deletions
|
@ -1129,8 +1129,9 @@
|
|||
PlayerConnectionUtils.ensureMainThread(packetplayinwindowclick, this, this.player.x());
|
||||
+ if (this.player.isFrozen()) return; // CraftBukkit
|
||||
this.player.resetIdleTimer();
|
||||
if (this.player.activeContainer.windowId == packetplayinwindowclick.a() && this.player.activeContainer.c(this.player)) {
|
||||
- if (this.player.activeContainer.windowId == packetplayinwindowclick.a() && this.player.activeContainer.c(this.player)) {
|
||||
- if (this.player.isSpectator()) {
|
||||
+ if (this.player.activeContainer.windowId == packetplayinwindowclick.a() && this.player.activeContainer.c(this.player) && this.player.activeContainer.a(this.player)) { // CraftBukkit
|
||||
+ boolean cancelled = this.player.isSpectator(); // CraftBukkit - see below if
|
||||
+ if (false/*this.player.isSpectator()*/) { // CraftBukkit
|
||||
NonNullList nonnulllist = NonNullList.a();
|
||||
|
|
Loading…
Add table
Reference in a new issue