mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +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(!world.isRemote){
|
||||||
if(ItemPhantomConnector.getStoredPosition(stack) == null){
|
if(ItemPhantomConnector.getStoredPosition(stack) == null){
|
||||||
ItemPhantomConnector.storeConnection(stack, pos.getX(), pos.getY(), pos.getZ(), world);
|
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{
|
else{
|
||||||
BlockPos savedPos = ItemPhantomConnector.getStoredPosition(stack);
|
BlockPos savedPos = ItemPhantomConnector.getStoredPosition(stack);
|
||||||
|
@ -65,7 +65,7 @@ public class ItemLaserWrench extends ItemBase{
|
||||||
((TileEntityLaserRelay)savedTile).sendUpdate();
|
((TileEntityLaserRelay)savedTile).sendUpdate();
|
||||||
relay.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;
|
return EnumActionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,7 @@ public class ItemPhantomConnector extends ItemBase{
|
||||||
((TileEntityBase)tile).sendUpdate();
|
((TileEntityBase)tile).sendUpdate();
|
||||||
}
|
}
|
||||||
clearStorage(stack, "XCoordOfTileStored", "YCoordOfTileStored", "ZCoordOfTileStored", "WorldOfTileStored");
|
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.SUCCESS;
|
||||||
}
|
}
|
||||||
return EnumActionResult.FAIL;
|
return EnumActionResult.FAIL;
|
||||||
|
@ -109,7 +109,7 @@ public class ItemPhantomConnector extends ItemBase{
|
||||||
}
|
}
|
||||||
//Storing Connections
|
//Storing Connections
|
||||||
storeConnection(stack, pos.getX(), pos.getY(), pos.getZ(), world);
|
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;
|
return EnumActionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue