Skip to content

Commit 32da5ec

Browse files
committed
address todo and simplify return
1 parent 954ed7a commit 32da5ec

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/gregtech/mixins/minecraft/TileEntityMixin.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ private static Object wrapNewInstance(Class<? extends TileEntity> instance,
4040
MetaTileEntity mte = GregTechAPI.mteManager
4141
.getRegistry(location.getNamespace())
4242
.getObject(location);
43-
if (mte != null) {
44-
// todo remove this logging call
45-
GTLog.logger.warn("creating {} from TileEntity#create", mte.metaTileEntityId, tagCompound);
46-
return mte.copy();
47-
}
43+
44+
if (mte != null) return mte.copy();
4845
}
4946
return original.call(instance);
5047
}

0 commit comments

Comments
 (0)