mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-11-26 06:53:11 +00:00
Replace all references of blockType with getBlockType to fix NPE downstream
This commit is contained in:
1 parent
f54c69738e
commit
0da29db9be
7 files changed
+10
-10
No files matched your search
+1
-1
@@ -181,6 +181,6 @@ public class TileCKeyStone extends TileEntity {
|
||||
|
||||
public void updateBlocks() {
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -63,13 +63,13 @@ public class TilePlayerDetector extends TileEntity {
|
||||
|
||||
private void updateBlocks() {
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
|
||||
for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
|
||||
worldObj.notifyBlocksOfNeighborChange(
|
||||
xCoord + direction.offsetX,
|
||||
yCoord + direction.offsetY,
|
||||
zCoord + direction.offsetZ,
|
||||
blockType,
|
||||
getBlockType(),
|
||||
direction.getOpposite().ordinal());
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -96,13 +96,13 @@ public class TilePlayerDetectorAdvanced extends TileEntity implements IInventory
|
||||
|
||||
private void updateBlocks() {
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
|
||||
for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
|
||||
worldObj.notifyBlocksOfNeighborChange(
|
||||
xCoord + direction.offsetX,
|
||||
yCoord + direction.offsetY,
|
||||
zCoord + direction.offsetZ,
|
||||
blockType,
|
||||
getBlockType(),
|
||||
direction.getOpposite().ordinal());
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -60,7 +60,7 @@ public class TileDislocatorReceptacle extends TileEntity implements IInventory {
|
||||
}
|
||||
if (structure == null) {
|
||||
isActive = false;
|
||||
worldObj.notifyBlockChange(xCoord, yCoord, zCoord, blockType);
|
||||
worldObj.notifyBlockChange(xCoord, yCoord, zCoord, getBlockType());
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
return;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ public class TileDislocatorReceptacle extends TileEntity implements IInventory {
|
||||
}
|
||||
}
|
||||
if (isActive != isActiveBeforeUpdate) {
|
||||
worldObj.notifyBlockChange(xCoord, yCoord, zCoord, blockType);
|
||||
worldObj.notifyBlockChange(xCoord, yCoord, zCoord, getBlockType());
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ public class TileEnergyPylon extends TileObjectSync implements IEnergyHandler, I
|
||||
if (tick % 20 == 0) {
|
||||
int comparatorOut = (int) (getEnergyStored() / getMaxEnergyStored() * 15D);
|
||||
if (comparatorOut != lastCheckCompOverride) {
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
|
||||
lastCheckCompOverride = comparatorOut;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ public class TileReactorEnergyInjector extends TileEntity implements IReactorPar
|
||||
int comparatorOutput = core.getComparatorOutput(comparatorMode);
|
||||
if (comparatorOutput != comparatorOutputCache) {
|
||||
comparatorOutputCache = comparatorOutput;
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ public class TileReactorStabilizer extends TileEntity implements IReactorPart, I
|
||||
int comparatorOutput = core.getComparatorOutput(comparatorMode);
|
||||
if (comparatorOutput != comparatorOutputCache) {
|
||||
comparatorOutputCache = comparatorOutput;
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType);
|
||||
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user