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
|
//Spawn a new vehicle
|
||||||
Vehicle newVehicle = vehicleWorld.spawn(exit, teleportingVehicle.getClass());
|
Vehicle newVehicle = vehicleWorld.spawn(exit, teleportingVehicle.getClass());
|
||||||
if (teleportingVehicle instanceof Boat boat) {
|
if (teleportingVehicle instanceof Boat boat) {
|
||||||
((Boat) newVehicle).setWoodType(boat.getWoodType());
|
((Boat) newVehicle).setBoatType(boat.getBoatType());
|
||||||
}
|
}
|
||||||
//Remove the old vehicle
|
//Remove the old vehicle
|
||||||
if (teleportingVehicle.eject()) {
|
if (teleportingVehicle.eject()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user