Commit e9f5d984 authored by github-actions's avatar github-actions
Browse files

Fix whitespace [skip actions]

parent 08f36195
...@@ -53,7 +53,7 @@ public class EntityGadget extends EntityBaseGadget { ...@@ -53,7 +53,7 @@ public class EntityGadget extends EntityBaseGadget {
public EntityGadget(Scene scene, int gadgetId, Position pos, Position rot) { public EntityGadget(Scene scene, int gadgetId, Position pos, Position rot) {
super(scene); super(scene);
this.data = GameData.getGadgetDataMap().get(gadgetId); this.data = GameData.getGadgetDataMap().get(gadgetId);
if(data!=null && data.getJsonName()!=null) { if (data!=null && data.getJsonName()!=null) {
this.configGadget = GameData.getGadgetConfigData().get(data.getJsonName()); this.configGadget = GameData.getGadgetConfigData().get(data.getJsonName());
} }
this.id = getScene().getWorld().getNextEntityId(EntityIdType.GADGET); this.id = getScene().getWorld().getNextEntityId(EntityIdType.GADGET);
......
...@@ -293,7 +293,7 @@ public class EntityMonster extends GameEntity { ...@@ -293,7 +293,7 @@ public class EntityMonster extends GameEntity {
monsterInfo.addWeaponList(weaponInfo); monsterInfo.addWeaponList(weaponInfo);
} }
if(this.aiId!=-1){ if (this.aiId!=-1) {
monsterInfo.setAiConfigId(aiId); monsterInfo.setAiConfigId(aiId);
} }
......
...@@ -626,10 +626,10 @@ public class TeamManager extends BasePlayerDataManager { ...@@ -626,10 +626,10 @@ public class TeamManager extends BasePlayerDataManager {
} }
// Teleport player and set player position // Teleport player and set player position
try{ try {
this.getPlayer().sendPacket(new PacketPlayerEnterSceneNotify(this.getPlayer(), EnterType.ENTER_TYPE_SELF, EnterReason.Revival, player.getSceneId(), getRespawnPosition())); this.getPlayer().sendPacket(new PacketPlayerEnterSceneNotify(this.getPlayer(), EnterType.ENTER_TYPE_SELF, EnterReason.Revival, player.getSceneId(), getRespawnPosition()));
player.getPosition().set(getRespawnPosition()); player.getPosition().set(getRespawnPosition());
}catch(Exception e){ }catch (Exception e) {
this.getPlayer().sendPacket(new PacketPlayerEnterSceneNotify(this.getPlayer(), EnterType.ENTER_TYPE_SELF, EnterReason.Revival, 3, GameConstants.START_POSITION)); this.getPlayer().sendPacket(new PacketPlayerEnterSceneNotify(this.getPlayer(), EnterType.ENTER_TYPE_SELF, EnterReason.Revival, 3, GameConstants.START_POSITION));
player.getPosition().set(GameConstants.START_POSITION); // If something goes wrong, the resurrection is here player.getPosition().set(GameConstants.START_POSITION); // If something goes wrong, the resurrection is here
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment