mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
parent
5ccbc0b9fd
commit
ffef81fdaa
2 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ public class ItemLaserWrench extends ItemBase{
|
|||
if(!world.isRemote){
|
||||
if(ItemPhantomConnector.getStoredPosition(stack) == null){
|
||||
ItemPhantomConnector.storeConnection(stack, pos.getX(), pos.getY(), pos.getZ(), world);
|
||||
player.sendMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".laser.stored.desc"));
|
||||
player.sendStatusMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".laser.stored.desc"), true);
|
||||
}
|
||||
else{
|
||||
BlockPos savedPos = ItemPhantomConnector.getStoredPosition(stack);
|
||||
|
@ -65,7 +65,7 @@ public class ItemLaserWrench extends ItemBase{
|
|||
((TileEntityLaserRelay)savedTile).sendUpdate();
|
||||
relay.sendUpdate();
|
||||
|
||||
player.sendMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".laser.connected.desc"));
|
||||
player.sendStatusMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".laser.connected.desc"), true);
|
||||
|
||||
return EnumActionResult.SUCCESS;
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ public class ItemPhantomConnector extends ItemBase{
|
|||
((TileEntityBase)tile).sendUpdate();
|
||||
}
|
||||
clearStorage(stack, "XCoordOfTileStored", "YCoordOfTileStored", "ZCoordOfTileStored", "WorldOfTileStored");
|
||||
player.sendMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".phantom.connected.desc"));
|
||||
player.sendStatusMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".phantom.connected.desc"), true);
|
||||
return EnumActionResult.SUCCESS;
|
||||
}
|
||||
return EnumActionResult.FAIL;
|
||||
|
@ -109,7 +109,7 @@ public class ItemPhantomConnector extends ItemBase{
|
|||
}
|
||||
//Storing Connections
|
||||
storeConnection(stack, pos.getX(), pos.getY(), pos.getZ(), world);
|
||||
player.sendMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".phantom.stored.desc"));
|
||||
player.sendStatusMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".phantom.stored.desc"), true);
|
||||
}
|
||||
return EnumActionResult.SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue