From f44a96f0e08324f03910e8c32385e4671fd676d4 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Tue, 26 Dec 2017 11:36:29 -0800 Subject: Don't allow client code on the server --- src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/gregtech') diff --git a/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java b/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java index 090c71abe7..5f1d7cbd44 100644 --- a/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java +++ b/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java @@ -101,6 +101,8 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable { } protected final void addInfo(int aID) { + if(!GT.isClientSide()) return; + ItemStack tStack = new ItemStack(GregTech_API.sBlockMachines, 1, aID); tStack.getItem().addInformation(tStack, null, new ArrayList(), true); } -- cgit