1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00

Fixed some typo from 05b1fe77a5

This commit is contained in:
Florian CUNY 2017-11-23 22:23:50 +01:00 committed by GitHub
parent 18017680e8
commit 6093b4cf49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,7 @@ public class SlimefunItem {
if (SlimefunStartup.getItemCfg().getBoolean(id + ".enabled")) { if (SlimefunStartup.getItemCfg().getBoolean(id + ".enabled")) {
if (!Category.list().contains(category)) category.register(); if (!Category.list().contains(category)) category.register();
this.tate = State.ENABLED; this.state = State.ENABLED;
this.replacing = SlimefunStartup.getItemCfg().getBoolean(this.id + ".can-be-used-in-workbenches"); this.replacing = SlimefunStartup.getItemCfg().getBoolean(this.id + ".can-be-used-in-workbenches");
this.hidden = SlimefunStartup.getItemCfg().getBoolean(this.id + ".hide-in-guide"); this.hidden = SlimefunStartup.getItemCfg().getBoolean(this.id + ".hide-in-guide");
@ -258,21 +258,21 @@ public class SlimefunItem {
this.permission = SlimefunStartup.getItemCfg().getString(this.id + ".required-permission"); this.permission = SlimefunStartup.getItemCfg().getString(this.id + ".required-permission");
items.add(this); items.add(this);
if (slimefun) vanilla++; if (slimefun) vanilla++;
map_id.put(id, urid); map_id.put(this.id, this.urid);
create(); this.create();
for (ItemHandler handler: itemhandlers) { for (ItemHandler handler: itemhandlers) {
Set<ItemHandler> handlerset = getHandlers(handler.toCodename()); Set<ItemHandler> handlerset = getHandlers(handler.toCodename());
handlerset.add(handler); handlerset.add(handler);
handlers.put(handler.toCodename(), handlerset); handlers.put(handler.toCodename(), handlerset);
} }
if (SlimefunStartup.getCfg().getBoolean("options.print-out-loading")) System.out.println("[Slimefun] Loaded Item \"" + this.getID() + "\""); if (SlimefunStartup.getCfg().getBoolean("options.print-out-loading")) System.out.println("[Slimefun] Loaded Item \"" + this.id + "\"");
} else { } else {
if (this instanceof VanillaItem) this.state = State.VANILLA; if (this instanceof VanillaItem) this.state = State.VANILLA;
else this.state = State.DISABLED; else this.state = State.DISABLED;
} }
} catch(Exception x) { } catch(Exception x) {
System.err.println("[Slimefun] Item Registration failed: " + id); System.err.println("[Slimefun] Item Registration failed: " + this.id);
} }
} }