diff --git a/plugin.yml b/plugin.yml
index 0307dcf..956a90b 100644
--- a/plugin.yml
+++ b/plugin.yml
@@ -5,6 +5,7 @@ authors: [totemo]
description: ${project.description}
website: ${project.url}
main: nu.nerd.vc.VehicleControl
+api-version: 1.18
permissions:
vehiclecontrol.admin:
diff --git a/pom.xml b/pom.xml
index 60ef111..c7cd7ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
nu.nerd
VehicleControl
${project.name}
- 1.0.0
+ 1.1.0
jar
Automatically break boats and minecarts.
https://github.com/NerdNu/${project.name}
@@ -26,7 +26,7 @@
org.spigotmc
spigot-api
- 1.9-R0.1-SNAPSHOT
+ 1.18.1-R0.1-SNAPSHOT
diff --git a/src/nu/nerd/vc/VehicleScanTask.java b/src/nu/nerd/vc/VehicleScanTask.java
index 31e25e3..e8cd472 100644
--- a/src/nu/nerd/vc/VehicleScanTask.java
+++ b/src/nu/nerd/vc/VehicleScanTask.java
@@ -58,7 +58,7 @@ public void run() {
* Perform all required tasks in the specified world.
*
* @param world the affected world.
- * @param now the current system time.
+ * @param now the current system time.
*/
protected void scanWorld(World world, long now) {
for (Boat boat : world.getEntitiesByClass(Boat.class)) {
@@ -76,7 +76,7 @@ protected void scanWorld(World world, long now) {
* required.
*
* @param vehicle the vehicle.
- * @param now the current system time.
+ * @param now the current system time.
*/
protected void checkVehicle(Vehicle vehicle, long now) {
VehicleMetadata meta = getVehicleMetadata(vehicle);
@@ -233,9 +233,10 @@ protected String formatLoc(Location loc) {
* Look up table mapping TreeSpecies ordinal (boat type) to corresponding
* dropped boat item type.
*/
- private static final Material BOAT_DROP_TABLE[] = { Material.BOAT, Material.BOAT_SPRUCE,
- Material.BOAT_BIRCH, Material.BOAT_JUNGLE,
- Material.BOAT_ACACIA, Material.BOAT_DARK_OAK };
+ private static final Material BOAT_DROP_TABLE[] = {
+ Material.ACACIA_BOAT, Material.BIRCH_BOAT,
+ Material.DARK_OAK_BOAT, Material.JUNGLE_BOAT,
+ Material.OAK_BOAT, Material.SPRUCE_BOAT };
/**
* Metadata key for storing the VehicleMetadata on a vehicle.