Utils ported
This commit is contained in:
@@ -27,7 +27,7 @@ import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.network.play.server.SChunkDataPacket;
|
||||
import net.minecraft.tileentity.ITickableTileEntity;
|
||||
import net.minecraft.util.Tickable;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.EmptyBlockReader;
|
||||
import net.minecraft.world.ITickList;
|
||||
@@ -169,7 +169,7 @@ public class CachedPlane {
|
||||
for (final BlockEntity te : this.tiles) {
|
||||
try {
|
||||
this.getWorld().loadedTileEntityList.remove(te);
|
||||
if (te instanceof ITickableTileEntity) {
|
||||
if (te instanceof Tickable) {
|
||||
this.getWorld().tickableTileEntities.remove(te);
|
||||
}
|
||||
} catch (final Exception e) {
|
||||
|
||||
@@ -21,7 +21,7 @@ package appeng.spatial;
|
||||
import net.minecraft.util.SharedSeedRandom;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.WorldAccess;
|
||||
import net.minecraft.world.IWorldReader;
|
||||
import net.minecraft.world.WorldView;
|
||||
import net.minecraft.world.biome.Biome;
|
||||
import net.minecraft.world.gen.ChunkGenerator;
|
||||
import net.minecraft.world.gen.GenerationSettings;
|
||||
@@ -52,17 +52,17 @@ public class StorageCellBiome extends Biome {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesWaterFreeze(IWorldReader worldIn, BlockPos pos) {
|
||||
public boolean doesWaterFreeze(WorldView worldIn, BlockPos pos) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesWaterFreeze(IWorldReader worldIn, BlockPos water, boolean mustBeAtEdge) {
|
||||
public boolean doesWaterFreeze(WorldView worldIn, BlockPos water, boolean mustBeAtEdge) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesSnowGenerate(IWorldReader worldIn, BlockPos pos) {
|
||||
public boolean doesSnowGenerate(WorldView worldIn, BlockPos pos) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ public class StorageHelper {
|
||||
public void visit(final BlockPos pos) {
|
||||
final BlockState state = this.dst.getBlockState(pos);
|
||||
final Block blk = state.getBlock();
|
||||
blk.neighborChanged(state, this.dst, pos, blk, pos, false);
|
||||
blk.neighborUpdate(state, this.dst, pos, blk, pos, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user