Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed May 28, 2019
1 parent 945cee0 commit e0022a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ public boolean onRightClick(ItemUseEvent e, Player p, ItemStack item) {

// 注意此处
new SlimefunItem(Categories.TECH_MISC, SlimefunItems.BASIC_CIRCUIT_BOARD, "BASIC_CIRCUIT_BOARD", RecipeType.MOB_DROP,
new ItemStack[] {null, null, null, null, new CustomItem(new ItemStack(Material.POPPY), "&a&o铁傀儡"), null, null, null, null})
new ItemStack[] {null, null, null, null, new CustomItem(new ItemStack(Material.POPPY), "&a&oIron Golem"), null, null, null, null})
.register(true);

new SlimefunItem(Categories.TECH_MISC, SlimefunItems.ADVANCED_CIRCUIT_BOARD, "ADVANCED_CIRCUIT_BOARD", RecipeType.ENHANCED_CRAFTING_TABLE,
Expand Down
8 changes: 1 addition & 7 deletions src/me/mrCookieSlime/Slimefun/SlimefunGuide.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,7 @@ public void run(Player p) {
final ChestMenu menu = new ChestMenu("粘液科技指南");

menu.setEmptySlotsClickable(false);
menu.addMenuOpeningHandler(new MenuOpeningHandler() {

@Override
public void onOpen(Player p) {
p.playSound(p.getLocation(), Sound.ENTITY_BAT_TAKEOFF, 0.7F, 0.7F);
}
});
menu.addMenuOpeningHandler(p1 -> p1.playSound(p1.getLocation(), Sound.ENTITY_BAT_TAKEOFF, 0.7F, 0.7F));

List<Category> categories = Slimefun.current_categories;
List<GuideHandler> handlers = Slimefun.guide_handlers2;
Expand Down
9 changes: 5 additions & 4 deletions src/me/mrCookieSlime/Slimefun/SlimefunStartup.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ public void onEnable() {
if (currentVersion.startsWith(version)) {
compatibleVersion = true;
}

if (i == 0) versions.append(version.substring(1).replaceFirst("_", ".").replace("_", ".X"));
else if (i == supported.length - 1) versions.append(" or " + version.substring(1).replaceFirst("_", ".").replace("_", ".X"));
else versions.append(", " + version.substring(1).replaceFirst("_", ".").replace("_", ".X"));

String replace = version.substring(1).replaceFirst("_", ".").replace("_", ".X");
if (i == 0) versions.append(replace);
else if (i == supported.length - 1) versions.append(" or " + replace);
else versions.append(", " + replace);

i++;
}
Expand Down

0 comments on commit e0022a6

Please sign in to comment.