mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Fix #2462 (and a compile error derp from before)
This commit is contained in:
1 parent
775c0d20c3
commit
1b4b4cce7a
3 files changed
+3
-3
No files matched your search
@@ -83,7 +83,7 @@ public class LexiconEntry implements Comparable<LexiconEntry> {
|
||||
}
|
||||
|
||||
public String getTagline() {
|
||||
return null; // Override this if you want a tagline. You probably do
|
||||
return ""; // Override this if you want a tagline. You probably do
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
@@ -95,7 +95,7 @@ public class SubTileNarslimmus extends SubTileGenerating {
|
||||
event.getEntityLiving().getEntityData().setBoolean(TAG_WORLD_SPAWNED, true);
|
||||
}
|
||||
|
||||
private static boolean isSlimeChunk(World world, int x, int z) {
|
||||
public static boolean isSlimeChunk(World world, int x, int z) {
|
||||
Chunk chunk = world.getChunkFromBlockCoords(new BlockPos(x, 0, z));
|
||||
return chunk.getRandomWithSeed(987234911L).nextInt(10) == 0;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class ItemSlimeBottle extends ItemMod {
|
||||
if(!world.isRemote) {
|
||||
int x = MathHelper.floor(entity.posX);
|
||||
int z = MathHelper.floor(entity.posZ);
|
||||
boolean slime = SubTileNarslimmus.SpawnIntercepter.isSlimeChunk(world, x, z);
|
||||
boolean slime = SubTileNarslimmus.isSlimeChunk(world, x, z);
|
||||
int meta = stack.getItemDamage();
|
||||
int newMeta = slime ? 1 : 0;
|
||||
if(meta != newMeta)
|
||||
|
||||
Reference in new issue
Block a user