mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Remove jeb.
This commit is contained in:
1 parent
fb27d0aa3b
commit
7900f1ac28
1 file changed
+1
-4
@@ -310,10 +310,7 @@ public class ItemLens extends ItemMod implements ILens {
|
||||
List<EntitySheep> sheepList = entity.worldObj.getEntitiesWithinAABB(EntitySheep.class, AxisAlignedBB.getBoundingBox(pos.entityHit.posX - r, pos.entityHit.posY - r, pos.entityHit.posZ - r, pos.entityHit.posX + r, pos.entityHit.posY + r, pos.entityHit.posZ + r));
|
||||
for(EntitySheep sheep : sheepList) {
|
||||
if(sheep.getFleeceColor() == sheepColor)
|
||||
if(storedColor == 16) {
|
||||
if(!MinecraftForge.MC_VERSION.endsWith(".2")) // Jeb_ sheep only work on 1.7.4+
|
||||
sheep.setCustomNameTag("jeb_");
|
||||
} else sheep.setFleeceColor(storedColor);
|
||||
sheep.setFleeceColor(storedColor == 16 ? sheep.worldObj.rand.nextInt(16) : storedColor);
|
||||
}
|
||||
dead = true;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user