mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-03 13:38:20 +00:00
Fixed AirShield and NPE (#660)
• Fixed AirShield not blocking FireBlast, EarthBlast and WaterManip • Fixed an NPE in RPG
This commit is contained in:
parent
9f863cc0e9
commit
24ca9182c0
2 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,7 @@ public abstract class ElementalAbility extends CoreAbility {
|
|||
}
|
||||
|
||||
public static boolean isSolarEclipse(World world) {
|
||||
if (world == null || !GeneralMethods.hasRPG()) {
|
||||
if (world == null || !GeneralMethods.hasRPG() || !EventManager.marker.containsKey(world)) {
|
||||
return false;
|
||||
}
|
||||
return EventManager.marker.get(world).equalsIgnoreCase("SolarEclipse");
|
||||
|
|
|
@ -152,6 +152,9 @@ public class CollisionInitializer {
|
|||
collisionManager.addCollision(new Collision(airShield, airBlast, false, true));
|
||||
collisionManager.addCollision(new Collision(airShield, airSuction, false, true));
|
||||
collisionManager.addCollision(new Collision(airShield, airStream, false, true));
|
||||
collisionManager.addCollision(new Collision(airShield, fireBlast, false, true));
|
||||
collisionManager.addCollision(new Collision(airShield, earthBlast, false, true));
|
||||
collisionManager.addCollision(new Collision(airShield, waterManipulation, false, true));
|
||||
for (CoreAbility comboAbil : comboAbils) {
|
||||
collisionManager.addCollision(new Collision(airShield, comboAbil, false, true));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue