remove old stuff that isn't really a thing anymore

This commit is contained in:
Ellpeck 2016-11-20 17:26:10 +01:00
parent 5b4efb287d
commit 75a3a91e65
2 changed files with 3 additions and 16 deletions

View file

@ -128,7 +128,6 @@ public class ItemDrill extends ItemEnergy{
}
//Notify the Player and log the Exception
catch(Exception e){
player.addChatMessage(new TextComponentString("Ouch! That really hurt! You must have done something wrong, don't do that again please!"));
ModUtil.LOGGER.error("Player "+player.getName()+" who should place a Block using a Drill at "+player.posX+", "+player.posY+", "+player.posZ+" in World "+world.provider.getDimension()+" threw an Exception! Don't let that happen again!");
}
}

View file

@ -94,8 +94,9 @@ public class ItemPhantomConnector extends ItemBase{
if(tile != null){
//Passing to Phantom
if(tile instanceof IPhantomTile){
if(this.checkHasConnection(stack, player, tile) && getStoredWorld(stack) == world){
((IPhantomTile)tile).setBoundPosition(getStoredPosition(stack));
BlockPos stored = getStoredPosition(stack);
if(stored != null && getStoredWorld(stack) == world){
((IPhantomTile)tile).setBoundPosition(stored);
if(tile instanceof TileEntityBase){
((TileEntityBase)tile).sendUpdate();
}
@ -113,19 +114,6 @@ public class ItemPhantomConnector extends ItemBase{
return EnumActionResult.SUCCESS;
}
public boolean checkHasConnection(ItemStack stack, EntityPlayer player, TileEntity tile){
if(getStoredPosition(stack) != null){
return true;
}
else{
if(tile instanceof IPhantomTile){
((IPhantomTile)tile).setBoundPosition(null);
}
player.addChatMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".phantom.unbound.desc"));
return false;
}
}
@Override
public boolean getShareTag(){
return true;