Improved the ladder hook. Added a new hook for sustained-use items.

This commit is contained in:
Eloraam committed 2012-01-11 19:40:04 +00:00
1 parent 2631c01109
commit 95481e1cd2
10 files changed
+68 -22

No files matched your search

@@ -7,7 +7,7 @@
- return worldObj.getBlockId(i, j, k) == Block.ladder.blockID;
+ Block block=Block.blocksList[worldObj.getBlockId(i,j,k)];
+ if(block==null) return false;
+ return block.isLadder();
+ return block.isLadder(worldObj,i,j,k);
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)