Prevent mobspawns on antiblocks as Cpt mentioned he wanted to do in #169

This commit is contained in:
warlordjones committed 2015-04-05 17:00:03 +01:00
1 parent a5e71b4c71
commit d483727a09
1 file changed
+6
@@ -1,6 +1,8 @@
package com.cricketcraft.chisel.block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.world.IBlockAccess;
import com.cricketcraft.chisel.Chisel;
import com.cricketcraft.chisel.api.ICarvable;
@@ -26,4 +28,8 @@ public class BlockCarvableAntiBlock extends BlockCarvableColor implements ICarva
return false;
}
*/
@Override
public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z) {
return false;
}
}