mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 23:45:55 +00:00
Merge pull request #1891 from nekosune/master
Fixed UUID showing up in denied message
This commit is contained in:
commit
d3d8bcfab5
3 files changed
+4
-6
No files matched your search
@@ -23,6 +23,7 @@ import crazypants.enderio.gui.IResourceTooltipProvider;
|
||||
import crazypants.enderio.network.PacketHandler;
|
||||
import crazypants.enderio.teleport.ITravelAccessable;
|
||||
import crazypants.util.Lang;
|
||||
import net.minecraftforge.common.UsernameCache;
|
||||
|
||||
public class BlockEnderIO extends BlockEio implements IResourceTooltipProvider {
|
||||
|
||||
@@ -95,7 +96,7 @@ public class BlockEnderIO extends BlockEio implements IResourceTooltipProvider {
|
||||
entityPlayer.openGui(EnderIO.instance, GuiHandler.GUI_ID_TRAVEL_ACCESSABLE, world, x, y, z);
|
||||
} else {
|
||||
if(world.isRemote && !entityPlayer.isSneaking()) {
|
||||
entityPlayer.addChatComponentMessage(new ChatComponentText(Lang.localize("gui.travelAccessable.privateBlock1") + " " + ta.getPlacedBy() + " "
|
||||
entityPlayer.addChatComponentMessage(new ChatComponentText(Lang.localize("gui.travelAccessable.privateBlock1") + " " + UsernameCache.getLastKnownUsername(ta.getPlacedBy()) + " "
|
||||
+ Lang.localize("gui.travelAccessable.privateBlock2")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
package crazypants.enderio.machine.transceiver;
|
||||
|
||||
import crazypants.enderio.EnderIO;
|
||||
import crazypants.enderio.Log;
|
||||
import crazypants.util.PlayerUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
||||
public class ClientChannelRegister extends ChannelRegister {
|
||||
|
||||
public static final ChannelRegister instance = new ClientChannelRegister();
|
||||
|
||||
@@ -38,6 +38,7 @@ import crazypants.enderio.teleport.packet.PacketOpenAuthGui;
|
||||
import crazypants.enderio.teleport.packet.PacketTravelEvent;
|
||||
import crazypants.util.IFacade;
|
||||
import crazypants.util.Lang;
|
||||
import net.minecraftforge.common.UsernameCache;
|
||||
|
||||
public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEntityProvider, IResourceTooltipProvider, IFacade {
|
||||
|
||||
@@ -126,7 +127,7 @@ public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEnt
|
||||
entityPlayer.openGui(EnderIO.instance, GuiHandler.GUI_ID_TRAVEL_ACCESSABLE, world, x, y, z);
|
||||
} else {
|
||||
if(world.isRemote && !entityPlayer.isSneaking()) {
|
||||
entityPlayer.addChatComponentMessage(new ChatComponentText(Lang.localize("gui.travelAccessable.privateBlock1") + " " + ta.getPlacedBy() + " "
|
||||
entityPlayer.addChatComponentMessage(new ChatComponentText(Lang.localize("gui.travelAccessable.privateBlock1") + " " + UsernameCache.getLastKnownUsername(ta.getPlacedBy()) + " "
|
||||
+ Lang.localize("gui.travelAccessable.privateBlock2")));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user