Lots of compile fixes

This commit is contained in:
Sebastian Hartte
2020-06-04 03:02:48 +02:00
parent 6eb2a9504a
commit 237463dd94
241 changed files with 3438 additions and 3474 deletions
@@ -47,13 +47,12 @@ public class DefaultSpatialHandler implements IMovableHandler
@Override
public void moveTile( final TileEntity te, final World w, final BlockPos newPosition )
{
te.setWorld( w );
te.setPos( newPosition );
te.setWorldAndPos( w, newPosition );
final Chunk c = w.getChunkFromBlockCoords( newPosition );
final Chunk c = w.getChunkAt( newPosition );
c.addTileEntity( newPosition, te );
if( c.isLoaded() )
if( w.getChunkProvider().isChunkLoaded(c.getPos()) )
{
final BlockState state = w.getBlockState( newPosition );
w.addTileEntity( te );