diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2022-12-15 18:08:43 +0800 |
---|---|---|
committer | Glease <4586901+Glease@users.noreply.github.com> | 2022-12-15 18:08:43 +0800 |
commit | a482befa9f6fbc7d530802747c1b8648fa91c200 (patch) | |
tree | bc2faef921e769bd5d754e9ba7e635cb6a82b8ff /src | |
parent | a3bc1803e72259da2948f8db91ee5e2af883d327 (diff) | |
download | GT5-Unofficial-a482befa9f6fbc7d530802747c1b8648fa91c200.tar.gz GT5-Unofficial-a482befa9f6fbc7d530802747c1b8648fa91c200.tar.bz2 GT5-Unofficial-a482befa9f6fbc7d530802747c1b8648fa91c200.zip |
fix issues with nei structure hologram
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java b/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java index a51e2034b3..c654df9bb4 100644 --- a/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java +++ b/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java @@ -143,8 +143,11 @@ public class MTE_AdvAssLine extends GT_MetaTileEntity_AssemblyLine { @Override public void initDefaultModes(NBTTagCompound aNBT) { super.initDefaultModes(aNBT); - if (getBaseMetaTileEntity().isServerSide()) { + // blockrenderer6343 seems to place the block in a weird way, let's catch that + if (getBaseMetaTileEntity() != null && getBaseMetaTileEntity().isServerSide()) { UUID ownerUuid = getBaseMetaTileEntity().getOwnerUuid(); + if (ownerUuid == null) + return; @SuppressWarnings("unchecked") List<EntityPlayerMP> l = MinecraftServer.getServer().getConfigurationManager().playerEntityList; for (EntityPlayerMP p : l) { if (p.getUniqueID().equals(ownerUuid)) { |