diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/MortarEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/MortarEntity.java index 859a115c2..fada00af8 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/MortarEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/MortarEntity.java @@ -162,7 +162,7 @@ public class MortarEntity extends Entity implements GeoEntity, AnimatedEntity { ModUtils.queueServerWork(20, () -> { Level level = this.level(); if (level instanceof ServerLevel server) { - MortarShellEntity entityToSpawn = new MortarShellEntity(ModEntities.MORTAR_SHELL.get(), player, level); + MortarShellEntity entityToSpawn = new MortarShellEntity(player, level); entityToSpawn.setPos(this.getX(), this.getEyeY(), this.getZ()); entityToSpawn.shoot(this.getLookAngle().x, this.getLookAngle().y, this.getLookAngle().z, 8, (float) 0.3); level.addFreshEntity(entityToSpawn); diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/MortarShellEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/MortarShellEntity.java index 211f4dbc4..01a47d865 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/MortarShellEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/MortarShellEntity.java @@ -49,12 +49,12 @@ public class MortarShellEntity extends ThrowableItemProjectile implements GeoEnt this.noCulling = true; } - public MortarShellEntity(EntityType type, LivingEntity entity, Level world) { - super(type, entity, world); + public MortarShellEntity(LivingEntity entity, Level level) { + super(ModEntities.MORTAR_SHELL.get(), entity, level); } - public MortarShellEntity(EntityType type, LivingEntity entity, Level world, float damage) { - super(type, entity, world); + public MortarShellEntity(LivingEntity entity, Level world, float damage) { + super(ModEntities.MORTAR_SHELL.get(), entity, world); this.damage = damage; } diff --git a/src/main/java/com/atsuishio/superbwarfare/procedures/WelcomeProcedure.java b/src/main/java/com/atsuishio/superbwarfare/procedures/WelcomeProcedure.java index 35c28d414..cde9710aa 100644 --- a/src/main/java/com/atsuishio/superbwarfare/procedures/WelcomeProcedure.java +++ b/src/main/java/com/atsuishio/superbwarfare/procedures/WelcomeProcedure.java @@ -32,7 +32,7 @@ public class WelcomeProcedure { if ((logger == null ? logger = ModUtils.LOGGER : LogManager.getLogger(ModUtils.class)) instanceof Logger) { { Logger _lgr = ((Logger) (logger == null ? logger = ModUtils.LOGGER : LogManager.getLogger(ModUtils.class))); - _lgr.info("This Mod is made by MCreator!"); + _lgr.info("This Mod used to be made by MCreator!"); } } }