Skip to content

Commit 842fcc6

Browse files
committed
2 parents ac7a6ee + da10b80 commit 842fcc6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/main/java/io/github/thebusybiscuit/slimefun4/api/player/PlayerBackpack.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ public void open(Player p) {
313313
if (isInvalid) {
314314
return;
315315
}
316-
p.openInventory(inventory);
316+
317+
InventoryUtil.openInventory(p, inventory);
317318
}
318319

319320
/**

src/main/java/io/github/thebusybiscuit/slimefun4/core/services/localization/LanguagePreset.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public enum LanguagePreset {
4242
VIETNAMESE("vi", "8a57b9d7dd04169478cfdb8d0b6fd0b8c82b6566bb28371ee9a7c7c1671ad0bb"),
4343
INDONESIAN("id", "5db2678ccaba7934412cb97ee16d416463a392574c5906352f18dea42895ee"),
4444
CHINESE_CHINA("zh-CN", "7f9bc035cdc80f1ab5e1198f29f3ad3fdd2b42d9a69aeb64de990681800b98dc"),
45-
CHINESE_TAIWAN("zh-TW", "702a4afb2e1e2e3a1894a8b74272f95cfa994ce53907f9ac140bd3c932f9f"),
45+
CHINESE_TAIWAN("zh-TW", "7f9bc035cdc80f1ab5e1198f29f3ad3fdd2b42d9a69aeb64de990681800b98dc"),
4646
JAPANESE("ja", "d640ae466162a47d3ee33c4076df1cab96f11860f07edb1f0832c525a9e33323"),
4747
KOREAN("ko", "fc1be5f12f45e413eda56f3de94e08d90ede8e339c7b1e8f32797390e9a5f"),
4848
HEBREW("he", TextDirection.RIGHT_TO_LEFT, "1ba086a2cc7272cf5ba49c80248546c22e5ef1bab54120e8a8e5d9e75b6a"),

src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/backpacks/EnderBackpack.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.github.thebusybiscuit.slimefun4.implementation.items.backpacks;
22

3+
import city.norain.slimefun4.utils.InventoryUtil;
34
import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
45
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
56
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
@@ -32,7 +33,7 @@ public EnderBackpack(ItemGroup itemGroup, SlimefunItemStack item, RecipeType rec
3233
public @Nonnull ItemUseHandler getItemHandler() {
3334
return e -> {
3435
Player p = e.getPlayer();
35-
p.openInventory(p.getEnderChest());
36+
InventoryUtil.openInventory(p, p.getEnderChest());
3637
SoundEffect.ENDER_BACKPACK_OPEN_SOUND.playFor(p);
3738
e.cancel();
3839
};

src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/tools/PortableDustbin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.github.thebusybiscuit.slimefun4.implementation.items.tools;
22

3+
import city.norain.slimefun4.utils.InventoryUtil;
34
import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
45
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
56
import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType;
@@ -36,7 +37,8 @@ public PortableDustbin(ItemGroup itemGroup, SlimefunItemStack item, RecipeType r
3637
e.cancel();
3738

3839
Player p = e.getPlayer();
39-
p.openInventory(Bukkit.createInventory(null, 9 * 3, ChatColor.DARK_RED + "Delete Items"));
40+
var dustbin = Bukkit.createInventory(null, 9 * 3, ChatColor.DARK_RED + "便携垃圾桶");
41+
InventoryUtil.openInventory(p, dustbin);
4042
SoundEffect.PORTABLE_DUSTBIN_OPEN_SOUND.playFor(p);
4143
};
4244
}

0 commit comments

Comments
 (0)