Skip to content

Commit 67576b0

Browse files
committed
remove old try catch, let coroutine scope handle it nicely instead
1 parent 8119ee5 commit 67576b0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

interfaces/src/main/kotlin/com/noxcrew/interfaces/view/AbstractInterfaceView.kt

+4-8
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,11 @@ public abstract class AbstractInterfaceView<I : InterfacesInventory, T : Interfa
267267
// Removes the first pending transform
268268
val transform = pendingTransforms.remove()
269269

270-
try {
271-
// Don't run transforms for an offline player!
272-
if (!Bukkit.isStopping() && player.isOnline) {
273-
withTimeout(6.seconds) {
274-
runTransformAndApplyToPanes(transform)
275-
}
270+
// Don't run transforms for an offline player!
271+
if (!Bukkit.isStopping() && player.isOnline) {
272+
withTimeout(6.seconds) {
273+
runTransformAndApplyToPanes(transform)
276274
}
277-
} catch (exception: Exception) {
278-
logger.error("Failed to run and apply transform: $transform", exception)
279275
}
280276
}
281277

0 commit comments

Comments
 (0)