mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
Bump to 0.6.3
Making sure main is up-to-date with my local edits.
This commit is contained in:
1 parent
c407701476
commit
84f8d68a63
3 files changed
+165
-36
No files matched your search
@@ -251,7 +251,7 @@ public class SiegeEngine implements Cloneable {
|
||||
return;
|
||||
}
|
||||
|
||||
if (living.getEquipment().getHelmet().getItemMeta().getCustomModelData() != readyModelNumber) {
|
||||
if (living.getEquipment().getHelmet().getItemMeta().getCustomModelData() != readyModelNumber || ammoHolder.loadedProjectile == 0) {
|
||||
if (player instanceof Player) {
|
||||
((Player) player).sendMessage("§eCannot fire yet!");
|
||||
}
|
||||
@@ -315,9 +315,14 @@ public class SiegeEngine implements Cloneable {
|
||||
SiegeEnginesUtil.UpdateEntityIdModel(entity, modelData, worldName);
|
||||
if (modelData == modelNumberToFireAt) {
|
||||
// player.sendMessage("§efiring" + modelData);
|
||||
SiegeEngineProjectile projType = null;
|
||||
if (LoadedProjectile == null) return;
|
||||
if (LoadedProjectile.getType() == Material.AIR) return;
|
||||
SiegeEngineProjectile projType = projectiles.get(LoadedProjectile);
|
||||
if (LoadedProjectile.getType() == Material.FIREWORK_ROCKET) {
|
||||
projType = FireworkProjectile.getDefaultRocketShot(LoadedProjectile);
|
||||
} else {
|
||||
projType = projectiles.get(LoadedProjectile);
|
||||
}
|
||||
if (projType == null) return;
|
||||
projType.Shoot(player, entity, this.GetFireLocation(living), loadedFuel * velocityPerFuel);
|
||||
}
|
||||
@@ -343,9 +348,14 @@ public class SiegeEngine implements Cloneable {
|
||||
loc.add(direction);
|
||||
|
||||
nextModelNumber = 0;
|
||||
SiegeEngineProjectile projType = null;
|
||||
if (LoadedProjectile == null) return;
|
||||
if (LoadedProjectile.getType() == Material.AIR) return;
|
||||
SiegeEngineProjectile projType = projectiles.get(LoadedProjectile);
|
||||
if (LoadedProjectile.getType() == Material.FIREWORK_ROCKET) {
|
||||
projType = FireworkProjectile.getDefaultRocketShot(LoadedProjectile);
|
||||
} else {
|
||||
projType = projectiles.get(LoadedProjectile);
|
||||
}
|
||||
if (projType == null) return;
|
||||
projType.Shoot(player, entity, this.GetFireLocation(living), loadedFuel * velocityPerFuel);
|
||||
}, (long) delay);
|
||||
|
||||
Reference in new issue
Block a user