Consistency: itruncate1_14Books -> isTruncate1_14Books

This commit is contained in:
Myles 2019-03-17 16:11:36 +00:00
parent 32a2734082
commit be3fa19c0a
6 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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

View File

@ -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();

View File

@ -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);
}

View File

@ -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);
}