1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Infused Magnets can no longer be placed down

This commit is contained in:
TheBusyBiscuit 2020-05-16 17:04:16 +02:00
parent 6a27bfd629
commit 3a2cced5d0
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@
* Little performance improvements
* Bandages, Rags and Splints will no longer be consumed if your health is full and you are not on fire
* Player Profiles (researches and stuff) are now loaded completely asynchronously
* The Infused Magnet can no longer be placed down
#### Fixes
* Fixed #1824

View File

@ -5,6 +5,7 @@ import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import io.github.thebusybiscuit.slimefun4.api.items.ItemSetting;
import io.github.thebusybiscuit.slimefun4.implementation.items.blocks.UnplaceableBlock;
import me.mrCookieSlime.Slimefun.Lists.RecipeType;
import me.mrCookieSlime.Slimefun.Objects.Category;
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
@ -18,7 +19,7 @@ import me.mrCookieSlime.Slimefun.api.SlimefunItemStack;
* @author TheBusyBiscuit
*
*/
public class InfusedMagnet extends SlimefunItem {
public class InfusedMagnet extends UnplaceableBlock {
private final ItemSetting<Double> radius = new ItemSetting<>("pickup-radius", 6.0);