Skip to content

Commit df56ca6

Browse files
committed
Compacted an catch to match other methods
1 parent f997a8e commit df56ca6

File tree

1 file changed

+2
-4
lines changed
  • Item Creator/src/main/java/org/broken/arrow/library/itemcreator/utility/compound

1 file changed

+2
-4
lines changed

Item Creator/src/main/java/org/broken/arrow/library/itemcreator/utility/compound/LegacyNBT.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,9 @@ public void remove(@Nonnull final String key) {
356356

357357
try {
358358
remove.invoke(handle, key);
359-
} catch (IllegalAccessException | InvocationTargetException e) {
360-
logger.logError(e, () -> "Failed to check if the compound have the key.");
361359
} catch (Throwable e) {
362-
throw new RuntimeException(e);
363-
}
360+
logger.logError(e, () -> "Failed to check if the compound have the key.");
361+
}
364362
}
365363

366364
/**

0 commit comments

Comments
 (0)