fix: always return InteractionResult#SUCCESS when effect available

This commit is contained in:
xtex 2023-07-30 10:19:58 +08:00
parent bdccd0c7f3
commit b183e99b3c
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -126,8 +126,8 @@ object CyberInstrumentBlock : Block(
val entity = level.getBlockEntity(pos) as CyberInstrumentBlockEntity
if (entity.player == null) {
entity.startMusic()
return InteractionResult.SUCCESS
}
return InteractionResult.SUCCESS
}
return super.use(state, level, pos, player, hand, hit)
}