mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
Correct the spelling of matrixs to matrices and counting of them for the Infusion Provider (#79)
This commit is contained in:
1 parent
801010c8d5
commit
5c70fe9e68
3 files changed
+6
-6
No files matched your search
@@ -47,7 +47,7 @@ public class BlockAdvancedInfusionProvider extends AbstractBlockProviderBase {
|
||||
final EntityPlayer player) {
|
||||
if (world.getTileEntity(x, y, z) instanceof TileAdvancedInfusionProvider taip && taip.isActive()) {
|
||||
if (!taip.matrices.isEmpty()) {
|
||||
taip.unbindMatrixs();
|
||||
taip.unbindMatrices();
|
||||
}
|
||||
taip.searchMatrix();
|
||||
return true;
|
||||
|
||||
@@ -78,7 +78,7 @@ public class TileAdvancedInfusionProvider extends TileInfusionProvider implement
|
||||
for (int dx = -HORIZONTAL_RADIUS; dx <= HORIZONTAL_RADIUS; dx++) {
|
||||
for (int dy = -VERTICAL_RADIUS; dy <= VERTICAL_RADIUS; dy++) {
|
||||
if (dx == 0 && dy == 0 && currentZ == 0) continue;
|
||||
this.bindMatrixs(this.xCoord + dx, this.yCoord + dy, this.zCoord + this.currentZ);
|
||||
this.bindMatrices(this.xCoord + dx, this.yCoord + dy, this.zCoord + this.currentZ);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ public class TileAdvancedInfusionProvider extends TileInfusionProvider implement
|
||||
}
|
||||
}
|
||||
|
||||
public void bindMatrixs(final int x, final int y, final int z) {
|
||||
public void bindMatrices(final int x, final int y, final int z) {
|
||||
if (this.worldObj != null && this.worldObj.getTileEntity(x, y, z) instanceof TileInfusionMatrix tim) {
|
||||
if (this.matrices.contains(tim)) return;
|
||||
this.matrices.add(tim);
|
||||
@@ -97,7 +97,7 @@ public class TileAdvancedInfusionProvider extends TileInfusionProvider implement
|
||||
}
|
||||
}
|
||||
|
||||
public void unbindMatrixs() {
|
||||
public void unbindMatrices() {
|
||||
this.matrices.clear();
|
||||
|
||||
this.markForUpdate();
|
||||
@@ -154,7 +154,7 @@ public class TileAdvancedInfusionProvider extends TileInfusionProvider implement
|
||||
|
||||
if (!this.matrices.isEmpty() && this.isActive) {
|
||||
for (TileInfusionMatrix matrix : this.matrices) {
|
||||
if (matrix == null) {
|
||||
if (matrix == null || matrix.getWorldObj().isAirBlock(matrix.xCoord, matrix.yCoord, matrix.zCoord)) {
|
||||
this.matricesToRemove.add(matrix);
|
||||
} else {
|
||||
this.grabAllAspects(matrix);
|
||||
|
||||
@@ -82,7 +82,7 @@ thaumicenergistics.tooltip.button.reset.aspect.description=Reset the left-hand a
|
||||
thaumicenergistics.tooltip.advanced.infusion.provider.working.on=Workig Mode
|
||||
thaumicenergistics.tooltip.advanced.infusion.provider.normal=Normal Provider
|
||||
thaumicenergistics.tooltip.advanced.infusion.provider.advanced=Advanced Provider
|
||||
thaumicenergistics.tooltip.advanced.infusion.provider.totalbind=Total binded to %d matrixs
|
||||
thaumicenergistics.tooltip.advanced.infusion.provider.totalbind=Total binded to %d matrices
|
||||
|
||||
|
||||
#GUI
|
||||
|
||||
Reference in new issue
Block a user