forgot a null check
This commit is contained in:
parent
82de1ed0ed
commit
dbc0fe42ad
2 changed files with 5 additions and 1 deletions
|
@ -17,6 +17,7 @@ import buildcraft.core.proxy.CoreProxy;
|
|||
import buildcraft.core.utils.Utils;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import ibxm.Player;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
@ -109,6 +110,8 @@ public class BlockFiller extends BlockContainer {
|
|||
}
|
||||
@Override
|
||||
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLivingBase entityliving, ItemStack stack){
|
||||
world.getClosestPlayer(i, j, k, 5).addStat(BuildCraftCore.fasterFillingAchievement, 1);
|
||||
if (world.getClosestPlayer(i, j, k, 5)!=null){
|
||||
world.getClosestPlayer(i, j, k, 5).addStat(BuildCraftCore.fasterFillingAchievement, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ package buildcraft.core.utils;
|
|||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
||||
import buildcraft.BuildCraftCore;
|
||||
import buildcraft.BuildCraftFactory;
|
||||
|
||||
public class CraftingHandler {
|
||||
|
||||
|
|
Loading…
Reference in a new issue