mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 23:45:44 +00:00
Improved the ladder hook. Added a new hook for sustained-use items.
This commit is contained in:
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)
|
||||
Reference in new issue
Block a user