Fixed compiler errors
This commit is contained in:
@@ -25,7 +25,7 @@ public interface IType {
|
||||
if (value == 0 || value == 1) {
|
||||
((IType) tile.getNode()).setType(value);
|
||||
|
||||
tile.world.playerEntities.stream()
|
||||
tile.getWorld().playerEntities.stream()
|
||||
.filter(p -> p.openContainer instanceof ContainerBase && ((ContainerBase) p.openContainer).getTile().getPos().equals(tile.getPos()))
|
||||
.forEach(p -> p.openContainer.detectAndSendChanges());
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ public class ContainerListener {
|
||||
if (container instanceof ContainerBase) {
|
||||
TileBase tile = ((ContainerBase) container).getTile();
|
||||
|
||||
if (tile != null && !tile.world.isRemote) {
|
||||
if (tile != null && !tile.getWorld().isRemote) {
|
||||
TileDataManager manager = tile.getDataManager();
|
||||
|
||||
manager.sendParametersTo((EntityPlayerMP) e.getEntityPlayer());
|
||||
@@ -44,7 +44,7 @@ public class ContainerListener {
|
||||
if (container instanceof ContainerBase) {
|
||||
TileBase tile = ((ContainerBase) container).getTile();
|
||||
|
||||
if (tile != null && !tile.world.isRemote) {
|
||||
if (tile != null && !tile.getWorld().isRemote) {
|
||||
tile.getDataManager().getWatchers().remove(e.getEntityPlayer());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user