mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #1803
This commit is contained in:
parent
2ebd003f3a
commit
5842598f8e
@ -78,6 +78,7 @@
|
||||
* Fixed heads with missing permissions placing down
|
||||
* Fixed unpermitted items still showing up in the guide if researches are disabled
|
||||
* Fixed unpermitted items in the book guide triggering the search function
|
||||
* Fixed #1803
|
||||
|
||||
## Release Candidate 10 (28 Mar 2020)
|
||||
|
||||
|
@ -37,7 +37,6 @@ import me.mrCookieSlime.Slimefun.api.SlimefunItemStack;
|
||||
public class ElevatorPlate extends SimpleSlimefunItem<BlockUseHandler> {
|
||||
|
||||
private final Set<UUID> users = new HashSet<>();
|
||||
private final NamespacedKey elevatorKey = new NamespacedKey(SlimefunPlugin.instance, "elevator");
|
||||
|
||||
public ElevatorPlate(Category category, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput) {
|
||||
super(category, item, recipeType, recipe, recipeOutput);
|
||||
@ -125,7 +124,7 @@ public class ElevatorPlate extends SimpleSlimefunItem<BlockUseHandler> {
|
||||
else {
|
||||
line = new ChatComponent("\n" + ChatColor.GRAY.toString() + (floors.size() - i) + ". " + ChatColor.RESET + floor);
|
||||
line.setHoverEvent(new HoverEvent(ChatColors.color(SlimefunPlugin.getLocal().getMessage(p, "machines.ELEVATOR.click-to-teleport")), "", ChatColor.RESET + floor, ""));
|
||||
line.setClickEvent(new ClickEvent(elevatorKey, player -> Slimefun.runSync(() -> {
|
||||
line.setClickEvent(new ClickEvent(new NamespacedKey(SlimefunPlugin.instance, "floor" + i), player -> Slimefun.runSync(() -> {
|
||||
users.add(player.getUniqueId());
|
||||
|
||||
float yaw = player.getEyeLocation().getYaw() + 180;
|
||||
|
@ -38,6 +38,8 @@ public class Smeltery extends MultiBlockMachine {
|
||||
|
||||
public Smeltery() {
|
||||
super(Categories.BASIC_MACHINES, SlimefunItems.SMELTERY, new ItemStack[] { null, new ItemStack(Material.NETHER_BRICK_FENCE), null, new ItemStack(Material.NETHER_BRICKS), new CustomItem(Material.DISPENSER, "Dispenser (Facing up)"), new ItemStack(Material.NETHER_BRICKS), null, new ItemStack(Material.FLINT_AND_STEEL), null }, new ItemStack[] { SlimefunItems.IRON_DUST, new ItemStack(Material.IRON_INGOT) }, BlockFace.DOWN);
|
||||
|
||||
addItemSetting(fireBreakingChance);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user