diff --git a/bukkit/src/main/java/com/viaversion/viaversion/ViaVersionPlugin.java b/bukkit/src/main/java/com/viaversion/viaversion/ViaVersionPlugin.java index f62d6cd20..4a94559e5 100644 --- a/bukkit/src/main/java/com/viaversion/viaversion/ViaVersionPlugin.java +++ b/bukkit/src/main/java/com/viaversion/viaversion/ViaVersionPlugin.java @@ -286,7 +286,7 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaPlatform @Override public final Collection getUnsupportedSoftwareClasses() { - List list = new ArrayList<>(ViaPlatform.super.getUnsupportedSoftwareClasses()); + final List list = new ArrayList<>(ViaPlatform.super.getUnsupportedSoftwareClasses()); list.add(new UnsupportedServerSoftware.Builder().name("Yatopia").reason(UnsupportedServerSoftware.Reason.DANGEROUS_SERVER_SOFTWARE) .addClassName("org.yatopiamc.yatopia.server.YatopiaConfig") .addClassName("net.yatopia.api.event.PlayerAttackEntityEvent") diff --git a/common/src/main/java/com/viaversion/viaversion/ViaManagerImpl.java b/common/src/main/java/com/viaversion/viaversion/ViaManagerImpl.java index 6a84b1af0..bfcfc844c 100644 --- a/common/src/main/java/com/viaversion/viaversion/ViaManagerImpl.java +++ b/common/src/main/java/com/viaversion/viaversion/ViaManagerImpl.java @@ -237,7 +237,7 @@ public class ViaManagerImpl implements ViaManager { private void unsupportedSoftwareWarning() { boolean found = false; - for (UnsupportedSoftware software : platform.getUnsupportedSoftwareClasses()) { + for (final UnsupportedSoftware software : platform.getUnsupportedSoftwareClasses()) { if (!software.findMatch()) { continue; } diff --git a/common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java b/common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java index 992768311..edb86487c 100644 --- a/common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java +++ b/common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java @@ -446,10 +446,10 @@ public abstract class EntityRewriter extends RewriterBase public PacketHandler worldDataTrackerHandlerByKey() { return wrapper -> { EntityTracker tracker = tracker(wrapper.user()); - String key = wrapper.get(Type.STRING, 0); - DimensionData dimensionData = tracker.dimensionData(key); + String dimensionKey = wrapper.get(Type.STRING, 0); + DimensionData dimensionData = tracker.dimensionData(dimensionKey); if (dimensionData == null) { - Via.getPlatform().getLogger().severe("Dimension data missing for dimension: " + key + ", falling back to overworld"); + Via.getPlatform().getLogger().severe("Dimension data missing for dimension: " + dimensionKey + ", falling back to overworld"); dimensionData = tracker.dimensionData("minecraft:overworld"); Preconditions.checkNotNull(dimensionData, "Overworld data missing"); } @@ -457,7 +457,7 @@ public abstract class EntityRewriter extends RewriterBase tracker.setCurrentWorldSectionHeight(dimensionData.height() >> 4); tracker.setCurrentMinY(dimensionData.minY()); - String world = wrapper.get(Type.STRING, 0); + String world = wrapper.get(Type.STRING, 1); if (tracker.currentWorld() != null && !tracker.currentWorld().equals(world)) { tracker.clearEntities(); tracker.trackClientEntity();