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 1ef1f46 commit 4bdbbd6Copy full SHA for 4bdbbd6
src/main/java/com/gregtechceu/gtceu/api/cosmetics/CapeRegistry.java
@@ -247,8 +247,8 @@ public static void clearMaps() {
247
}
248
249
@SneakyThrows(CommandSyntaxException.class)
250
- public static void giveRawCape(UUID uuid, @NotNull ResourceLocation cape) {
251
- if (!CapeRegistry.ALL_CAPES.containsKey(cape)) {
+ public static void giveRawCape(UUID uuid, @Nullable ResourceLocation cape) {
+ if (cape != null && !CapeRegistry.ALL_CAPES.containsKey(cape)) {
252
throw ERROR_NO_SUCH_CAPE.create(cape.toString());
253
254
CURRENT_CAPES.put(uuid, cape);
0 commit comments