Skip to content

Commit 5dbb7ff

Browse files
committed
fixed #13 ig
1 parent 8ed4c1e commit 5dbb7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/just_s/sds/SDSMod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void onInitialize() {
2424
AttackBlockCallback.EVENT.register(
2525
(player, world, hand, pos, direction) -> {
2626
// callback hooks before the spectator check
27-
if (player.isSpectator()) {
27+
if (player.isSpectator() || player.isCreative()) {
2828
return ActionResult.PASS;
2929
}
3030

0 commit comments

Comments
 (0)