There was an error while loading. Please reload this page.
1 parent 0ddcacc commit e9cdba1Copy full SHA for e9cdba1
1 file changed
src/main/java/com/thevoxelbox/voxelsniper/brush/type/entity/EntityBrush.java
@@ -93,7 +93,7 @@ private void spawn(Snipe snipe) {
93
Class<? extends org.bukkit.entity.Entity> entityClass;
94
try {
95
entityClass = BukkitAdapter.adapt(entityType).getEntityClass();
96
- } catch (RuntimeException e) {
+ } catch (IllegalArgumentException e) {
97
messenger.sendMessage(Caption.of("voxelsniper.brush.entity.cannot-spawn"));
98
return;
99
}
0 commit comments