@@ -198,7 +198,7 @@ private StaticVisTable sidebar() {
198198 releaseButton .addListener (new ClickListener () {
199199 @ Override
200200 public void clicked (InputEvent event , float x , float y ) {
201- var dto = new GambleTerminalDto (item .getOwner (), item .getAirportId (), false );
201+ GambleTerminalDto dto = new GambleTerminalDto (item .getOwner (), item .getAirportId (), false );
202202 dto .apply (client .getGameMap (), true );
203203 client .broadcast (Packet .PacketType .GAMBLE_TERMINAL , dto );
204204 refresh ();
@@ -212,7 +212,7 @@ public void clicked(InputEvent event, float x, float y) {
212212 keepButton .addListener (new ClickListener () {
213213 @ Override
214214 public void clicked (InputEvent event , float x , float y ) {
215- var dto = new GambleTerminalDto (client .getPlayer ().getId (), item .getAirportId (), true );
215+ GambleTerminalDto dto = new GambleTerminalDto (client .getPlayer ().getId (), item .getAirportId (), true );
216216 dto .apply (client .getGameMap (), true );
217217 client .broadcast (Packet .PacketType .GAMBLE_TERMINAL , dto );
218218 refresh ();
@@ -313,7 +313,7 @@ public void notifySelection(Object data) {
313313 client .broadcast (Packet .PacketType .TERMINAL_USER_INVENTORY_ACTION , dto );
314314 } else if (selectedInventoryItemType == InventoryItemType .Expand_Airplane ) {
315315 if (!(data instanceof Airplane planeObj )) return ;
316- var dto = new AirplaneUserInventoryActionDto (
316+ AirplaneUserInventoryActionDto dto = new AirplaneUserInventoryActionDto (
317317 client .getPlayer ().getId (),
318318 planeObj .getId (),
319319 planeObj .getLocation (),
@@ -323,14 +323,14 @@ public void notifySelection(Object data) {
323323 client .broadcast (Packet .PacketType .AIRPLANE_USER_INVENTORY_ACTION , dto );
324324 } else if (selectedInventoryItemType == InventoryItemType .Resilience ) {
325325 if (!(data instanceof Airplane planeObj )) return ;
326- var dto = new AirplaneUserInventoryActionDto (
326+ AirplaneUserInventoryActionDto dto = new AirplaneUserInventoryActionDto (
327327 client .getPlayer ().getId (), planeObj .getId (), planeObj .getLocation (), "" , InventoryItemType .Resilience
328328 );
329329 dto .apply (client .getGameMap (), true );
330330 client .broadcast (Packet .PacketType .AIRPLANE_USER_INVENTORY_ACTION , dto );
331331 } else if (selectedInventoryItemType == InventoryItemType .Top_Dog ) {
332332 if (!(data instanceof PlaceAirplaneCommand placeAirplaneCommand )) return ;
333- var dto = new TopDogPlaceAirplaneDto (placeAirplaneCommand .getPlane ().getId (),
333+ TopDogPlaceAirplaneDto dto = new TopDogPlaceAirplaneDto (placeAirplaneCommand .getPlane ().getId (),
334334 placeAirplaneCommand .getPath ().getId (), placeAirplaneCommand .getPlane ().getOwner ());
335335 dto .apply (client .getGameMap (), true );
336336 client .broadcast (Packet .PacketType .TOP_DOG_PLACE_AIRPLANE , dto );
0 commit comments