change unimportant feedback to the action bar

Closes #775
This commit is contained in:
Ellpeck 2017-05-28 00:52:10 +02:00
parent 5ccbc0b9fd
commit ffef81fdaa
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;
}