mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 14:34:28 +00:00
15 lines
562 B
Diff
15 lines
562 B
Diff
--- ../src_base/minecraft/net/minecraft/entity/passive/EntityOcelot.java
|
|
+++ ../src_work/minecraft/net/minecraft/entity/passive/EntityOcelot.java
|
|
@@ -334,8 +334,9 @@
|
|
}
|
|
|
|
int l = this.worldObj.getBlockId(i, j - 1, k);
|
|
-
|
|
- if (l == Block.grass.blockID || l == Block.leaves.blockID)
|
|
+ Block block = Block.blocksList[l];
|
|
+
|
|
+ if (l == Block.grass.blockID || (block != null && block.isLeaves(worldObj, i, j - 1, k)))
|
|
{
|
|
return true;
|
|
}
|