diff options
author | Hownaer <franzi.moos@googlemail.com> | 2014-08-28 00:05:11 +0200 |
---|---|---|
committer | Hownaer <franzi.moos@googlemail.com> | 2014-08-28 00:05:11 +0200 |
commit | e555cb4ab3a783f9dc8980bd5f7e4523bd6711ce (patch) | |
tree | baf92198dfc7a26ea8287d8a1302f22dd457a80c /MCServer/Plugins/APIDump | |
parent | Fixed mob burning. (diff) | |
download | cuberite-e555cb4ab3a783f9dc8980bd5f7e4523bd6711ce.tar cuberite-e555cb4ab3a783f9dc8980bd5f7e4523bd6711ce.tar.gz cuberite-e555cb4ab3a783f9dc8980bd5f7e4523bd6711ce.tar.bz2 cuberite-e555cb4ab3a783f9dc8980bd5f7e4523bd6711ce.tar.lz cuberite-e555cb4ab3a783f9dc8980bd5f7e4523bd6711ce.tar.xz cuberite-e555cb4ab3a783f9dc8980bd5f7e4523bd6711ce.tar.zst cuberite-e555cb4ab3a783f9dc8980bd5f7e4523bd6711ce.zip |
Diffstat (limited to 'MCServer/Plugins/APIDump')
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index fe56ecee8..3e1a6e3bb 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -2570,8 +2570,8 @@ World:ForEachEntity( The following code snippet checks if the player holds a shovel. <pre class="prettyprint lang-lua"> -- a_Player is a {{cPlayer}} object, possibly received as a hook param -local HeldItem = a_Player:GetEquippedItem(); -if (cItemCategory:IsShovel(HeldItem.m_ItemType)) then +local HeldItem = a_Player:GetEquippedItem() +if (ItemCategory.IsShovel(HeldItem.m_ItemType)) then -- It's a shovel end </pre> |