File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
src/test/java/com/comphenix/protocol Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ repositories {
34
34
35
35
dependencies {
36
36
implementation ' net.bytebuddy:byte-buddy:1.14.14'
37
- compileOnly ' org.spigotmc:spigot-api:1.20.6 -R0.1-SNAPSHOT'
38
- compileOnly ' org.spigotmc:spigot:1.21-R0.1-SNAPSHOT'
37
+ compileOnly ' org.spigotmc:spigot-api:1.21.1 -R0.1-SNAPSHOT'
38
+ compileOnly ' org.spigotmc:spigot:1.21.1 -R0.1-SNAPSHOT'
39
39
compileOnly ' io.netty:netty-all:4.0.23.Final'
40
40
compileOnly ' net.kyori:adventure-text-serializer-gson:4.14.0'
41
41
compileOnly ' com.googlecode.json-simple:json-simple:1.1.1'
@@ -46,7 +46,7 @@ dependencies {
46
46
testImplementation ' org.mockito:mockito-core:5.6.0'
47
47
testImplementation ' io.netty:netty-common:4.1.97.Final'
48
48
testImplementation ' io.netty:netty-transport:4.1.97.Final'
49
- testImplementation ' org.spigotmc:spigot:1.21-R0.1-SNAPSHOT'
49
+ testImplementation ' org.spigotmc:spigot:1.21.1 -R0.1-SNAPSHOT'
50
50
testImplementation ' net.kyori:adventure-text-serializer-gson:4.14.0'
51
51
testImplementation ' net.kyori:adventure-text-serializer-plain:4.14.0'
52
52
}
Original file line number Diff line number Diff line change @@ -167,12 +167,12 @@ private void initialize() {
167
167
when (mockedServer .getRegistry (any ())).thenAnswer (invocation -> {
168
168
Class <Keyed > registryType = invocation .getArgument (0 );
169
169
Object registry = CraftRegistry .createRegistry (registryType , registryCustom );
170
-
171
- // this is very temporary fix to the version mismatch between spigot-api (spigot-repo) and spigot (dmulloy2-repo)
172
- // if you remove this fix please also remove the DummyRegistry class down below
173
- if ( registry == null )
174
- return new DummyRegistry <>();
175
-
170
+
171
+ if ( registry == null ) {
172
+ System . err . println ( "WARN: Missing registry for " + registryType );
173
+ return new DummyRegistry <>();
174
+ }
175
+
176
176
return registry ;
177
177
});
178
178
You can’t perform that action at this time.
0 commit comments