Fixes use of depreciated setWoodType and getWoodType
This commit is contained in:
parent
11d3dc7a92
commit
b5e2565626
@ -169,7 +169,7 @@ public class VehicleTeleporter extends EntityTeleporter {
|
||||
//Spawn a new vehicle
|
||||
Vehicle newVehicle = vehicleWorld.spawn(exit, teleportingVehicle.getClass());
|
||||
if (teleportingVehicle instanceof Boat boat) {
|
||||
((Boat) newVehicle).setWoodType(boat.getWoodType());
|
||||
((Boat) newVehicle).setBoatType(boat.getBoatType());
|
||||
}
|
||||
//Remove the old vehicle
|
||||
if (teleportingVehicle.eject()) {
|
||||
|
Loading…
Reference in New Issue
Block a user