mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixed #1710
This commit is contained in:
parent
32a922ec7f
commit
bd09ea0d9d
@ -66,6 +66,7 @@
|
||||
* Fixed #1648
|
||||
* Fixed #1397
|
||||
* Fixed #1706
|
||||
* Fixed #1710
|
||||
|
||||
## Release Candidate 9 (07 Mar 2020)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.thebusybiscuit.slimefun4.implementation.items.tools;
|
||||
package io.github.thebusybiscuit.slimefun4.implementation.items.electric.gadgets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
@ -59,7 +59,7 @@ public class GrapplingHook extends SimpleSlimefunItem<ItemUseHandler> {
|
||||
b.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 100000, 100000));
|
||||
b.setLeashHolder(arrow);
|
||||
|
||||
boolean state = p.getInventory().getItemInMainHand().getType() != Material.SHEARS;
|
||||
boolean state = item.getType() != Material.SHEARS;
|
||||
SlimefunPlugin.getGrapplingHookListener().addGrapplingHook(uuid, arrow, b, state, despawnTicks);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user