This commit is contained in:
parent
e79e4034f8
commit
9d61900d5f
1 changed files with 7 additions and 11 deletions
|
@ -115,7 +115,6 @@ public class BuildCraftFactory extends BuildCraftMod {
|
|||
int quarryY = ticket.getModData().getInteger("quarryY");
|
||||
int quarryZ = ticket.getModData().getInteger("quarryZ");
|
||||
|
||||
if (world.blockExists(quarryX, quarryY, quarryZ)) {
|
||||
Block block = world.getBlock(quarryX, quarryY, quarryZ);
|
||||
if (block == quarryBlock) {
|
||||
TileQuarry tq = (TileQuarry) world.getTileEntity(quarryX, quarryY, quarryZ);
|
||||
|
@ -123,7 +122,6 @@ public class BuildCraftFactory extends BuildCraftMod {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Ticket> ticketsLoaded(List<Ticket> tickets, World world, int maxTicketCount) {
|
||||
|
@ -133,13 +131,11 @@ public class BuildCraftFactory extends BuildCraftMod {
|
|||
int quarryY = ticket.getModData().getInteger("quarryY");
|
||||
int quarryZ = ticket.getModData().getInteger("quarryZ");
|
||||
|
||||
if (world.blockExists(quarryX, quarryY, quarryZ)) {
|
||||
Block block = world.getBlock(quarryX, quarryY, quarryZ);
|
||||
if (block == quarryBlock) {
|
||||
validTickets.add(ticket);
|
||||
}
|
||||
}
|
||||
}
|
||||
return validTickets;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue