1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
TheBusyBiscuit 2020-03-17 16:45:13 +01:00
parent 32a922ec7f
commit bd09ea0d9d
3 changed files with 3 additions and 2 deletions

View File

@ -66,6 +66,7 @@
* Fixed #1648
* Fixed #1397
* Fixed #1706
* Fixed #1710
## Release Candidate 9 (07 Mar 2020)

View File

@ -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;

View File

@ -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);
}
};