3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 00:00:28 +01:00

Consistency: itruncate1_14Books -> isTruncate1_14Books

Dieser Commit ist enthalten in:
Myles 2019-03-17 16:11:36 +00:00
Ursprung 32a2734082
Commit be3fa19c0a
6 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -251,7 +251,7 @@ public class BukkitViaConfig extends Config implements ViaVersionConfig {
} }
@Override @Override
public boolean truncate1_14Books() { public boolean isTruncate1_14Books() {
return getBoolean("truncate-1_14-books", false); return getBoolean("truncate-1_14-books", false);
} }

Datei anzeigen

@ -304,7 +304,7 @@ public class BungeeViaConfig extends Config implements ViaVersionConfig {
} }
@Override @Override
public boolean truncate1_14Books() { public boolean isTruncate1_14Books() {
return getBoolean("truncate-1_14-books", false); return getBoolean("truncate-1_14-books", false);
} }

Datei anzeigen

@ -315,7 +315,7 @@ public interface ViaVersionConfig {
* *
* @return True if enabled * @return True if enabled
*/ */
boolean truncate1_14Books(); boolean isTruncate1_14Books();
/** /**
* Handles left handed info by using unused bit 7 on Client Settings packet * Handles left handed info by using unused bit 7 on Client Settings packet

Datei anzeigen

@ -45,7 +45,7 @@ public class PlayerPackets {
InventoryPackets.toServer(item); 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 // 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; if (item == null) return;
CompoundTag tag = item.getTag(); CompoundTag tag = item.getTag();

Datei anzeigen

@ -257,7 +257,7 @@ public class SpongeViaConfig extends Config implements ViaVersionConfig {
} }
@Override @Override
public boolean truncate1_14Books() { public boolean isTruncate1_14Books() {
return getBoolean("truncate-1_14-books", false); return getBoolean("truncate-1_14-books", false);
} }

Datei anzeigen

@ -309,7 +309,7 @@ public class VelocityViaConfig extends Config implements ViaVersionConfig {
} }
@Override @Override
public boolean truncate1_14Books() { public boolean isTruncate1_14Books() {
return getBoolean("truncate-1_14-books", false); return getBoolean("truncate-1_14-books", false);
} }