Fixes use of depreciated setWoodType and getWoodType

This commit is contained in:
Kristian Knarvik 2022-10-09 10:44:30 +02:00
parent 11d3dc7a92
commit b5e2565626

View File

@ -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()) {