mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
One more tweak
This commit is contained in:
parent
97cbe72a91
commit
f1d4b50b67
@ -21,6 +21,9 @@ import me.mrCookieSlime.Slimefun.api.Slimefun;
|
||||
* @author Linox
|
||||
* @author TheBusyBiscuit
|
||||
*
|
||||
* @see BeeWings
|
||||
* @see BeeWingsTask
|
||||
*
|
||||
*/
|
||||
public class BeeWingsListener implements Listener {
|
||||
|
||||
@ -42,7 +45,7 @@ public class BeeWingsListener implements Listener {
|
||||
ItemStack chestplate = player.getInventory().getChestplate();
|
||||
|
||||
if (wings.isItem(chestplate) && Slimefun.hasUnlocked(player, chestplate, true)) {
|
||||
new BeeWingsTask(player).scheduleRepeating(4, 1);
|
||||
new BeeWingsTask(player).scheduleRepeating(3, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ import io.github.thebusybiscuit.slimefun4.implementation.listeners.BeeWingsListe
|
||||
/**
|
||||
* This {@link PlayerTask} is responsible for the repeating checks for our {@link BeeWings}.
|
||||
*
|
||||
* @author beSnow
|
||||
* @author TheBusyBiscuit
|
||||
*
|
||||
* @see BeeWings
|
||||
@ -63,9 +64,8 @@ public class BeeWingsTask extends PlayerTask {
|
||||
private void slowDown() {
|
||||
SlimefunPlugin.getLocalization().sendMessage(p, "messages.bee-suit-slow-fall");
|
||||
|
||||
p.setGliding(false);
|
||||
p.setFallDistance(0);
|
||||
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 50, 0));
|
||||
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 60, 0));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -132,7 +132,7 @@ messages:
|
||||
no-tome-yourself: '&cYou cannot use the &4Tome of Knowledge &con yourself...'
|
||||
multimeter: '&bStored Energy: &3%stored% &b/ &3%capacity%'
|
||||
piglin-barter: '&4You cannot barter with piglins using Slimefun items'
|
||||
bee-suit-slow-fall: '&eYour Bee Wings start to slowly bring you back down to the ground'
|
||||
bee-suit-slow-fall: '&eYour Bee Wings will help you to get back to the ground safe and slow'
|
||||
|
||||
multi-tool:
|
||||
mode-change: '&b%device% mode changed to: &9%mode%'
|
||||
|
Loading…
Reference in New Issue
Block a user