From 6589841a6f99be73db4e1a284719f4a7cd0edbf3 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 8 Feb 2011 21:52:06 -0500 Subject: [PATCH] added method to force an inventory update By: Tahg --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index b90931fe09..7871480a0d 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -158,4 +158,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player { public boolean isSneaking() { return entity.J(); } + + public void updateInventory() { + entity.l(); + } }