diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/render/RenderBatteryBox.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/render/RenderBatteryBox.java index 2ca4f7d2e..751b813a7 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/render/RenderBatteryBox.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/render/RenderBatteryBox.java @@ -86,7 +86,7 @@ public class RenderBatteryBox implements BlockEntityRenderer try { AssetUtil.renderItemInWorld(stack, combinedLight, combinedOverlay, matrices, buffer); } catch (Exception e) { - ActuallyAdditions.LOGGER.error("Something went wrong trying to render an item in an empowerer! The item is " + BuiltInRegistries.ITEM.getKey(stack.getItem()) + "!", e); + ActuallyAdditions.LOGGER.error("Something went wrong trying to render an item in an empowerer! The item is {}!", BuiltInRegistries.ITEM.getKey(stack.getItem()), e); } matrices.popPose(); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShaped.java b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShaped.java index 53d6d39ee..6f0787718 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShaped.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShaped.java @@ -77,7 +77,7 @@ public class RecipeKeepDataShaped extends ShapedRecipe { RecipeSerializer.SHAPED_RECIPE.streamCodec().encode(buffer, recipe); } catch (Exception exception) { - ActuallyAdditions.LOGGER.info("Error writing "+ NAME +" Recipe to packet: ", exception); + ActuallyAdditions.LOGGER.info("Error writing {} Recipe to packet: ", NAME, exception); throw exception; } } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShapeless.java b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShapeless.java index 7f06ab3fb..56f1ad957 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShapeless.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShapeless.java @@ -97,7 +97,7 @@ public class RecipeKeepDataShapeless extends ShapelessRecipe { RecipeSerializer.SHAPELESS_RECIPE.streamCodec().encode(pBuffer, pRecipe); } catch (Exception e) { - ActuallyAdditions.LOGGER.info("Failed to serialize " + NAME + " Recipe to packet: " + e.getMessage()); + ActuallyAdditions.LOGGER.info("Failed to serialize {} Recipe to packet: {}", NAME, e.getMessage()); throw e; } } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java index 0a265a2bd..85144ece1 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java @@ -142,10 +142,10 @@ public final class PacketHandler { WorldData.get(level).setDirty(); if (compound.getBoolean("Log")) { - ActuallyAdditions.LOGGER.info("Receiving changed Player Data for player " + player.getName() + "."); + ActuallyAdditions.LOGGER.info("Receiving changed Player Data for player {}.", player.getName()); } } else { - ActuallyAdditions.LOGGER.error("Tried to receive Player Data for UUID " + compound.getUUID("UUID") + ", but he doesn't seem to be present!"); + ActuallyAdditions.LOGGER.error("Tried to receive Player Data for UUID {}, but he doesn't seem to be present!", compound.getUUID("UUID")); } } }; diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHelperClient.java b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHelperClient.java index a6c4d31df..6b31b1931 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHelperClient.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHelperClient.java @@ -68,7 +68,7 @@ public final class PacketHelperClient { PlayerData.getDataFromPlayer(player).readFromNBT(dataTag, false); if (compound.getBoolean("Log")) { - ActuallyAdditions.LOGGER.info("Receiving (new or changed) Player Data for player " + player.getName() + "."); + ActuallyAdditions.LOGGER.info("Receiving (new or changed) Player Data for player {}.", player.getName()); } } else { ActuallyAdditions.LOGGER.error("Tried to receive Player Data for the current player, but he doesn't seem to be present!"); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/util/WorldUtil.java b/src/main/java/de/ellpeck/actuallyadditions/mod/util/WorldUtil.java index 48be7f11f..63d62c947 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/util/WorldUtil.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/util/WorldUtil.java @@ -199,7 +199,7 @@ public final class WorldUtil { //setHandItemWithoutAnnoyingSound(fake, Hand.MAIN_HAND, heldBefore); return result; } catch (Exception e) { - ActuallyAdditions.LOGGER.error("Something that places Blocks at " + offsetPos.getX() + ", " + offsetPos.getY() + ", " + offsetPos.getZ() + " in World " + level.dimension() + " threw an Exception! Don't let that happen again!", e); + ActuallyAdditions.LOGGER.error("Something that places Blocks at {}, {}, {} in World {} threw an Exception! Don't let that happen again!", offsetPos.getX(), offsetPos.getY(), offsetPos.getZ(), level.dimension(), e); } } return stack;