mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
remove old stuff that isn't really a thing anymore
This commit is contained in:
parent
5b4efb287d
commit
75a3a91e65
2 changed files with 3 additions and 16 deletions
|
@ -128,7 +128,6 @@ public class ItemDrill extends ItemEnergy{
|
||||||
}
|
}
|
||||||
//Notify the Player and log the Exception
|
//Notify the Player and log the Exception
|
||||||
catch(Exception e){
|
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!");
|
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!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,8 +94,9 @@ public class ItemPhantomConnector extends ItemBase{
|
||||||
if(tile != null){
|
if(tile != null){
|
||||||
//Passing to Phantom
|
//Passing to Phantom
|
||||||
if(tile instanceof IPhantomTile){
|
if(tile instanceof IPhantomTile){
|
||||||
if(this.checkHasConnection(stack, player, tile) && getStoredWorld(stack) == world){
|
BlockPos stored = getStoredPosition(stack);
|
||||||
((IPhantomTile)tile).setBoundPosition(getStoredPosition(stack));
|
if(stored != null && getStoredWorld(stack) == world){
|
||||||
|
((IPhantomTile)tile).setBoundPosition(stored);
|
||||||
if(tile instanceof TileEntityBase){
|
if(tile instanceof TileEntityBase){
|
||||||
((TileEntityBase)tile).sendUpdate();
|
((TileEntityBase)tile).sendUpdate();
|
||||||
}
|
}
|
||||||
|
@ -113,19 +114,6 @@ public class ItemPhantomConnector extends ItemBase{
|
||||||
return EnumActionResult.SUCCESS;
|
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
|
@Override
|
||||||
public boolean getShareTag(){
|
public boolean getShareTag(){
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue