Skip to content

Commit

Permalink
1.5.1: Fixed NPE if rider-less boats are damaged
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyCurtis committed Sep 20, 2015
1 parent 7fd3169 commit 238910c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.cyclometh.bukkit.plugins.toughboats</groupId>
<artifactId>ToughBoats</artifactId>
<version>1.5-SNAPSHOT</version>
<version>1.5.1-SNAPSHOT</version>
<licenses>
<license>
<name>MIT</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public void onVehicleDestroyed(VehicleDestroyEvent event)
return;

event.setCancelled(true);
LOGGER.finer(String.format("Boat destruction prevented. Player: %s. Location: X%d Y%d Z%d.",
event.getVehicle().getPassenger().getName(),
LOGGER.finer(String.format("Boat destruction prevented. Location: X%d Y%d Z%d.",
(int) event.getVehicle().getLocation().getX(),
(int) event.getVehicle().getLocation().getY(),
(int) event.getVehicle().getLocation().getZ()
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ author: Cyclometh
authors: [Cyclometh, RoyCurtis]
website: /~https://github.com/Gamealition/ToughBoats
main: com.cyclometh.bukkit.plugins.toughboats.ToughBoats
version: 1.5
version: 1.5.1
description: Fixes boats in various ways; prevents their breaking, resyncs client-server
positions regularly and negates fall damage whilst sailing

Expand Down

0 comments on commit 238910c

Please sign in to comment.