使Abekiri在创造模式下使用不消耗耐久

This commit is contained in:
Light_Quanta 2024-05-09 21:57:31 +08:00
parent 7820caf7bc
commit 00c16b0b23
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -19,7 +19,7 @@ public class AbkrfireProcedure {
for (int index0 = 0; index0 < 8; index0++) {
BulletFireNormalProcedure.execute(entity);
}
if (usehand.hurt(1, RandomSource.create(), null)) {
if (!player.isCreative() && usehand.hurt(1, RandomSource.create(), null)) {
usehand.shrink(1);
usehand.setDamageValue(0);
}