Skip to content

Commit

Permalink
Update PaintballListener for 1.11
Browse files Browse the repository at this point in the history
Apparently some API functions have been changed in 1.11.x of Spigot, including `DyeColor#getData()` to `DyeColor#getDyeData()`. So I've updated the PaintballListener class to reflect this.
  • Loading branch information
TGRHavoc committed Mar 4, 2017
1 parent fc09ab4 commit 2d016c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void onPaintballHit(ProjectileHitEvent e){
hitBlocks.add(hitBlock.getLocation());

paintHandler.updateBlock(Bukkit.getOnlinePlayers(), hitBlock, Material.STAINED_CLAY,
DyeColor.values()[rand.nextInt(DyeColor.values().length)].getData());
DyeColor.values()[rand.nextInt(DyeColor.values().length)].getDyeData());

final Location loc = hitBlock.getLocation();
final Block hitBlock2 = hitBlock;
Expand Down

0 comments on commit 2d016c1

Please sign in to comment.