Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
Updated for Minecraft 1.18.1.
  • Loading branch information
totemo committed Jan 24, 2022
1 parent ecf9cdd commit 2e94257
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors: [totemo]
description: ${project.description}
website: ${project.url}
main: nu.nerd.vc.VehicleControl
api-version: 1.18

permissions:
vehiclecontrol.admin:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>nu.nerd</groupId>
<name>VehicleControl</name>
<artifactId>${project.name}</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<packaging>jar</packaging>
<description>Automatically break boats and minecarts.</description>
<url>https://github.com/NerdNu/${project.name}</url>
Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.9-R0.1-SNAPSHOT</version>
<version>1.18.1-R0.1-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
Expand Down
11 changes: 6 additions & 5 deletions src/nu/nerd/vc/VehicleScanTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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);
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2e94257

Please sign in to comment.