Skip to content

Commit

Permalink
Fix Zombie Generator NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Kogepan229 committed Nov 13, 2024
1 parent 726ce46 commit 4010150
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public TileFrankenZombieGenerator() {
public String getMachineName() {
return ModObject.blockFrankenzombieGenerator.unlocalisedName;
}

@Override
public GeneratorType getGeneratorType() {
return GeneratorType.FRANKENZOMBIE;
}
}

public static class TileEnderGenerator extends TileZombieGenerator {
Expand All @@ -58,6 +63,11 @@ public String getMachineName() {
protected Fluid getFluidType() {
return EnderIO.fluidEnderDistillation;
}

@Override
public GeneratorType getGeneratorType() {
return GeneratorType.ENDER;
}
}

private static int IO_MB_TICK = 250;
Expand Down Expand Up @@ -326,7 +336,7 @@ public int getTicksPerBucketOfFuel() {
}

public GeneratorType getGeneratorType() {
return ((BlockZombieGenerator) worldObj.getBlock(xCoord, yCoord, zCoord)).getGeneratorType();
return GeneratorType.ZOMBIE;
}

public int getOutputPerTick() {
Expand Down

0 comments on commit 4010150

Please sign in to comment.