summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2011-02-08 21:52:06 -0500
committerTahg <tahgtahv@gmail.com>2011-02-08 21:52:06 -0500
commit03be05790e39b428e7da8f893b884d5994441fbb (patch)
tree19865decb1487888afced865962d08a7e2658103 /src/main/java/org
parent43ef3b3037e0c84630c9e6c82c1b9f5772e0f33c (diff)
downloadcraftbukkit-03be05790e39b428e7da8f893b884d5994441fbb.tar
craftbukkit-03be05790e39b428e7da8f893b884d5994441fbb.tar.gz
craftbukkit-03be05790e39b428e7da8f893b884d5994441fbb.tar.lz
craftbukkit-03be05790e39b428e7da8f893b884d5994441fbb.tar.xz
craftbukkit-03be05790e39b428e7da8f893b884d5994441fbb.zip
added method to force an inventory update
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index b90931fe..7871480a 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/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();
+ }
}