mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
Merge remote-tracking branch 'github-desktop-Addalyn/1.12' into 1.12.2
This commit is contained in:
2 files changed
+7
-4
No files matched your search
@@ -175,7 +175,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
|
||||
ChargeUtils.discharge(27, this);
|
||||
|
||||
if (MekanismUtils.canFunction(this) && running && getEnergy() >= getPerTick() && searcher.state == State.FINISHED && oresToMine.size() > 0) {
|
||||
if (MekanismUtils.canFunction(this) && running && getEnergy() >= getPerTick() && searcher.state == State.FINISHED && !oresToMine.isEmpty()) {
|
||||
setActive(true);
|
||||
if (delay > 0) {
|
||||
delay--;
|
||||
@@ -479,7 +479,8 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
|
||||
public void start() {
|
||||
if (searcher.state == State.IDLE) {
|
||||
searcher.setChunkCache(new ChunkCache(getWorld(), getStartingCoord().getPos(), getStartingCoord().getPos().add(getDiameter(), maxY - minY + 1, getDiameter()), 0));
|
||||
BlockPos startingPos = getStartingCoord().getPos();
|
||||
searcher.setChunkCache(new ChunkCache(getWorld(), startingPos, startingPos.add(getDiameter(), maxY - minY + 1, getDiameter()), 0));
|
||||
searcher.start();
|
||||
}
|
||||
running = true;
|
||||
|
||||
@@ -160,8 +160,10 @@ public enum ToolsItem {
|
||||
|
||||
public static void remapItems() {
|
||||
for (ToolsItem toolsItem : values()) {
|
||||
ResourceLocation registryName = toolsItem.getItem().getRegistryName();
|
||||
toolsItem.updateItem(ForgeRegistries.ITEMS.getValue(registryName));
|
||||
if(!toolsItem.getItemStack().isEmpty()) {
|
||||
ResourceLocation registryName = toolsItem.getItem().getRegistryName();
|
||||
toolsItem.updateItem(ForgeRegistries.ITEMS.getValue(registryName));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user