修复换弹bug,调低音量
This commit is contained in:
parent
924c1983a4
commit
ede0c20711
3 changed files with 5 additions and 3 deletions
|
@ -163,8 +163,8 @@ public class JavelinMissileEntity extends ThrowableItemProjectile implements Geo
|
||||||
if (this.tickCount > 5) {
|
if (this.tickCount > 5) {
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
if (entityData.get(TOP)) {
|
if (entityData.get(TOP)) {
|
||||||
if (this.position().distanceTo(entity.position()) > 80) {
|
if (this.position().distanceTo(entity.position()) > 40) {
|
||||||
this.look(EntityAnchorArgument.Anchor.EYES, new Vec3(entity.getX(),entity.getY() + 50,entity.getZ()));
|
this.look(EntityAnchorArgument.Anchor.EYES, new Vec3(entity.getX(),entity.getY() + 30,entity.getZ()));
|
||||||
} else {
|
} else {
|
||||||
this.look(EntityAnchorArgument.Anchor.EYES, new Vec3(entity.getX(),entity.getEyeY() + 1,entity.getZ()));
|
this.look(EntityAnchorArgument.Anchor.EYES, new Vec3(entity.getX(),entity.getEyeY() + 1,entity.getZ()));
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,7 @@ public class JavelinMissileEntity extends ThrowableItemProjectile implements Geo
|
||||||
0.7f * this.getDeltaMovement().z + 1.3f * this.getLookAngle().z
|
0.7f * this.getDeltaMovement().z + 1.3f * this.getLookAngle().z
|
||||||
));
|
));
|
||||||
if (!this.level().isClientSide() && this.level() instanceof ServerLevel serverLevel) {
|
if (!this.level().isClientSide() && this.level() instanceof ServerLevel serverLevel) {
|
||||||
ParticleTool.sendParticle(serverLevel, ParticleTypes.SMOKE, this.xo, this.yo, this.zo, 1, 0, 0, 0, 0, true);
|
ParticleTool.sendParticle(serverLevel, ParticleTypes.CAMPFIRE_COSY_SMOKE, this.xo, this.yo, this.zo, 1, 0, 0, 0, 0, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,8 @@ public class ReloadMessage {
|
||||||
return;
|
return;
|
||||||
} else if (stack.getItem() == ModItems.RPG.get() && tag.getInt("max_ammo") == 0) {
|
} else if (stack.getItem() == ModItems.RPG.get() && tag.getInt("max_ammo") == 0) {
|
||||||
return;
|
return;
|
||||||
|
} else if (stack.getItem() == ModItems.JAVELIN.get() && tag.getInt("max_ammo") == 0) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canReload || clipLoad) {
|
if (canReload || clipLoad) {
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue