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:
Ursprung
32a2734082
Commit
be3fa19c0a
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren