From be3fa19c0a62df366e70b8fcf00155b85b604585 Mon Sep 17 00:00:00 2001 From: Myles Date: Sun, 17 Mar 2019 16:11:36 +0000 Subject: [PATCH] Consistency: itruncate1_14Books -> isTruncate1_14Books --- .../us/myles/ViaVersion/bukkit/platform/BukkitViaConfig.java | 2 +- .../us/myles/ViaVersion/bungee/platform/BungeeViaConfig.java | 2 +- .../src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java | 2 +- .../protocols/protocol1_14to1_13_2/packets/PlayerPackets.java | 2 +- .../us/myles/ViaVersion/sponge/platform/SpongeViaConfig.java | 2 +- .../myles/ViaVersion/velocity/platform/VelocityViaConfig.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaConfig.java b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaConfig.java index 6d095651f..3ca1df78c 100644 --- a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaConfig.java +++ b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaConfig.java @@ -251,7 +251,7 @@ public class BukkitViaConfig extends Config implements ViaVersionConfig { } @Override - public boolean truncate1_14Books() { + public boolean isTruncate1_14Books() { return getBoolean("truncate-1_14-books", false); } diff --git a/bungee/src/main/java/us/myles/ViaVersion/bungee/platform/BungeeViaConfig.java b/bungee/src/main/java/us/myles/ViaVersion/bungee/platform/BungeeViaConfig.java index cfb5ab7ce..def2fd7f1 100644 --- a/bungee/src/main/java/us/myles/ViaVersion/bungee/platform/BungeeViaConfig.java +++ b/bungee/src/main/java/us/myles/ViaVersion/bungee/platform/BungeeViaConfig.java @@ -304,7 +304,7 @@ public class BungeeViaConfig extends Config implements ViaVersionConfig { } @Override - public boolean truncate1_14Books() { + public boolean isTruncate1_14Books() { return getBoolean("truncate-1_14-books", false); } diff --git a/common/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java b/common/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java index ccfa4023c..9e9e70801 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java +++ b/common/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java @@ -315,7 +315,7 @@ public interface ViaVersionConfig { * * @return True if enabled */ - boolean truncate1_14Books(); + boolean isTruncate1_14Books(); /** * Handles left handed info by using unused bit 7 on Client Settings packet diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/packets/PlayerPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/packets/PlayerPackets.java index 1410b88fa..3fdb37a69 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/packets/PlayerPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/packets/PlayerPackets.java @@ -45,7 +45,7 @@ public class PlayerPackets { InventoryPackets.toServer(item); // Client limit when editing a book was upped from 50 to 100 in 1.14, but some anti-exploit plugins ban with a size higher than the old client limit - if (Via.getConfig().truncate1_14Books()) { + if (Via.getConfig().isTruncate1_14Books()) { if (item == null) return; CompoundTag tag = item.getTag(); diff --git a/sponge/src/main/java/us/myles/ViaVersion/sponge/platform/SpongeViaConfig.java b/sponge/src/main/java/us/myles/ViaVersion/sponge/platform/SpongeViaConfig.java index 59fa128b6..b2691673c 100644 --- a/sponge/src/main/java/us/myles/ViaVersion/sponge/platform/SpongeViaConfig.java +++ b/sponge/src/main/java/us/myles/ViaVersion/sponge/platform/SpongeViaConfig.java @@ -257,7 +257,7 @@ public class SpongeViaConfig extends Config implements ViaVersionConfig { } @Override - public boolean truncate1_14Books() { + public boolean isTruncate1_14Books() { return getBoolean("truncate-1_14-books", false); } diff --git a/velocity/src/main/java/us/myles/ViaVersion/velocity/platform/VelocityViaConfig.java b/velocity/src/main/java/us/myles/ViaVersion/velocity/platform/VelocityViaConfig.java index 80d592057..3dbac2ebc 100644 --- a/velocity/src/main/java/us/myles/ViaVersion/velocity/platform/VelocityViaConfig.java +++ b/velocity/src/main/java/us/myles/ViaVersion/velocity/platform/VelocityViaConfig.java @@ -309,7 +309,7 @@ public class VelocityViaConfig extends Config implements ViaVersionConfig { } @Override - public boolean truncate1_14Books() { + public boolean isTruncate1_14Books() { return getBoolean("truncate-1_14-books", false); }