We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b02f9 commit 5b67eaaCopy full SHA for 5b67eaa
1 file changed
paper-server/src/main/java/org/bukkit/craftbukkit/CraftGameRule.java
@@ -87,11 +87,10 @@ public String translationKey() {
87
}
88
89
@SuppressWarnings({"unchecked", "rawtypes"})
90
- public static <T> T shimLegacyValue(T value, GameRule<?> rule){
91
- if (rule instanceof CraftGameRule.LegacyGameRuleWrapper wrapper) {
+ public static <T> T shimLegacyValue(T value, GameRule<?> rule) {
+ if (rule instanceof LegacyGameRuleWrapper wrapper) {
92
return (T) wrapper.getToLegacyFromModern().apply(value);
93
94
-
95
return value;
96
97
0 commit comments