mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
Consistency: itruncate1_14Books -> isTruncate1_14Books
This commit is contained in:
parent
32a2734082
commit
be3fa19c0a
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user