1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00

Apparently SlimefunPlugin.instance is private now.

This commit is contained in:
LinoxGH 2020-08-20 14:30:21 +03:00 committed by GitHub
parent bf3b04a4c5
commit 37bacaa8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ public class ClimbingPick extends SimpleSlimefunItem<ItemUseHandler> implements
velocity.setY(launch); velocity.setY(launch);
users.add(p.getUniqueId()); users.add(p.getUniqueId());
Bukkit.getScheduler().runTaskLater(SlimefunPlugin.instance, () -> users.remove(p.getUniqueId()), 4L); Bukkit.getScheduler().runTaskLater(SlimefunPlugin.instance(), () -> users.remove(p.getUniqueId()), 4L);
} }
ClimbingPickLaunchEvent event = new ClimbingPickLaunchEvent(p, velocity, this, item, block); ClimbingPickLaunchEvent event = new ClimbingPickLaunchEvent(p, velocity, this, item, block);