mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fixed losing an infinite item when interacting with an entity. Thanks for the help Rigby!
This commit is contained in:
1 parent
12b7499c4f
commit
a6e5c97223
2 files changed
+14
-2
No files matched your search
@@ -869,8 +869,18 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
}
|
||||
// CraftBukkit end
|
||||
this.player.c(entity);
|
||||
// CraftBukkit start - update the client if the item is an infinite one
|
||||
if (this.player.inventory.getItemInHand().count <= -1) {
|
||||
this.player.a(this.player.activeContainer);
|
||||
}
|
||||
// CraftBukkit end
|
||||
} else if (packet7useentity.c == 1) {
|
||||
this.player.d(entity);
|
||||
// CraftBukkit start - update the client if the item is an infinite one
|
||||
if (this.player.inventory.getItemInHand().count <= -1) {
|
||||
this.player.a(this.player.activeContainer);
|
||||
}
|
||||
// CraftBukkit end
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user