20w12a
This commit is contained in:
1 parent
5efbbac663
commit
93806466a8
11 files changed
+31
-31
No files matched your search
@@ -241,7 +241,7 @@ public class OptimizedExplosion
|
||||
{
|
||||
if (block.shouldDropItemsOnExplosion(e) && world instanceof ServerWorld)
|
||||
{
|
||||
BlockEntity blockEntity = block.hasBlockEntity() ? world.getBlockEntity(blockpos) : null;
|
||||
BlockEntity blockEntity = block.method_26161() ? world.getBlockEntity(blockpos) : null; //hasBLockENtity
|
||||
|
||||
LootContext.Builder lootBuilder = new LootContext.Builder((ServerWorld) eAccess.getWorld())
|
||||
.setRandom(eAccess.getWorld().random)
|
||||
@@ -273,9 +273,10 @@ public class OptimizedExplosion
|
||||
Chunk chunk = world.getChunk(blockpos1.getX() >> 4, blockpos1.getZ() >> 4);
|
||||
|
||||
BlockPos down = blockpos1.down(1);
|
||||
if (chunk.getBlockState(blockpos1).getMaterial() == Material.AIR &&
|
||||
chunk.getBlockState(down).isFullOpaque(world, down) &&
|
||||
eAccess.getRandom().nextInt(3) == 0)
|
||||
if (eAccess.getRandom().nextInt(3) == 0 &&
|
||||
chunk.getBlockState(blockpos1).getMaterial() == Material.AIR &&
|
||||
chunk.getBlockState(down).method_26216(world, down) //isFullOPaque
|
||||
)
|
||||
{
|
||||
world.setBlockState(blockpos1, Blocks.FIRE.getDefaultState());
|
||||
}
|
||||
|
||||
@@ -865,7 +865,7 @@ public class RedstoneWireTurbo
|
||||
// position directly above the node being calculated is always
|
||||
// at index 1.
|
||||
UpdateNode center_up = upd.neighbor_nodes[1];
|
||||
boolean center_up_is_cube = center_up.currentState.isSimpleFullBlock(worldIn, center_up.self);
|
||||
boolean center_up_is_cube = center_up.currentState.method_26212(worldIn, center_up.self); //isSimpleFUllBLock
|
||||
|
||||
for (int m=0; m<4; m++) {
|
||||
// Get the neighbor array index of each of the four cardinal
|
||||
@@ -879,7 +879,7 @@ public class RedstoneWireTurbo
|
||||
|
||||
// Also check the positions above and below the cardinal
|
||||
// neighbors
|
||||
boolean neighbor_is_cube = neighbor.currentState.isSimpleFullBlock(worldIn, neighbor.self);
|
||||
boolean neighbor_is_cube = neighbor.currentState.method_26212(worldIn, neighbor.self); //isSimpleFUllBLock
|
||||
if (!neighbor_is_cube) {
|
||||
UpdateNode neighbor_down = upd.neighbor_nodes[rs_neighbors_dn[m]];
|
||||
l = getMaxCurrentStrength(neighbor_down, l);
|
||||
|
||||
Reference in new issue
Block a user