Fixed log spam when loading transporter core in single player

This commit is contained in:
Unknown 2019-04-23 03:02:46 +02:00 committed by unknown
parent 6365b3ab98
commit a0b2c005d1

View file

@ -254,8 +254,10 @@ public class MessageTransporterEffect implements IMessage, IMessageHandler<Messa
final TileEntity tileEntity = vTransporter.getTileEntity(world);
if (!(tileEntity instanceof TileEntityTransporterCore)) {
WarpDrive.logger.error(String.format("Missing transporter core at %s: %s",
vTransporter, tileEntity));
if (WarpDrive.isDev) {
WarpDrive.logger.warn(String.format("Missing transporter core at %s, is chunk loaded yet? %s",
vTransporter, tileEntity));
}
return;
}