Teneanea improvements and leaves
This commit is contained in:
parent
e3d5065e12
commit
5ee7a94ef6
28 changed files with 469 additions and 54 deletions
|
@ -23,7 +23,7 @@ import net.minecraft.util.math.Vec3i;
|
|||
import net.minecraft.world.WorldAccess;
|
||||
import ru.betterend.blocks.BlockBlueVine;
|
||||
import ru.betterend.blocks.basis.BlockDoublePlant;
|
||||
import ru.betterend.blocks.basis.BlockGlowingFur;
|
||||
import ru.betterend.blocks.basis.BlockFur;
|
||||
import ru.betterend.blocks.basis.BlockVine;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
import ru.betterend.registry.EndTags;
|
||||
|
@ -153,7 +153,7 @@ public class BlocksHelper {
|
|||
POS.setY(y);
|
||||
state = world.getBlockState(POS);
|
||||
|
||||
if (state.getBlock() instanceof BlockGlowingFur) {
|
||||
if (state.getBlock() instanceof BlockFur) {
|
||||
doubleCheck.add(POS.toImmutable());
|
||||
}
|
||||
// Liquids
|
||||
|
|
|
@ -113,6 +113,12 @@ public class MHelper {
|
|||
return x1 * x2 + y1 * y2;
|
||||
}
|
||||
|
||||
public static int getRandom(int x, int z) {
|
||||
int h = x * 374761393 + z * 668265263;
|
||||
h = (h ^ (h >> 13)) * 1274126177;
|
||||
return h ^ (h >> 16);
|
||||
}
|
||||
|
||||
public static int getSeed(int seed, int x, int y) {
|
||||
int h = seed + x * 374761393 + y * 668265263;
|
||||
h = (h ^ (h >> 13)) * 1274126177;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue