使Abekiri在创造模式下使用不消耗耐久
This commit is contained in:
parent
7820caf7bc
commit
00c16b0b23
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public class AbkrfireProcedure {
|
||||||
for (int index0 = 0; index0 < 8; index0++) {
|
for (int index0 = 0; index0 < 8; index0++) {
|
||||||
BulletFireNormalProcedure.execute(entity);
|
BulletFireNormalProcedure.execute(entity);
|
||||||
}
|
}
|
||||||
if (usehand.hurt(1, RandomSource.create(), null)) {
|
if (!player.isCreative() && usehand.hurt(1, RandomSource.create(), null)) {
|
||||||
usehand.shrink(1);
|
usehand.shrink(1);
|
||||||
usehand.setDamageValue(0);
|
usehand.setDamageValue(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue