mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
Cleanup
This commit is contained in:
1 parent
3c5c624251
commit
e780215100
2 files changed
+21
-12
No files matched your search
@@ -1,7 +1,15 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2011-2014 SirSengir.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the GNU Lesser Public License v3
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
*
|
||||
* Various Contributors including, but not limited to:
|
||||
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
||||
******************************************************************************/
|
||||
package forestry.storage;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -15,7 +23,7 @@ import forestry.plugins.PluginStorage;
|
||||
public class CrateRegistry implements ICrateRegistry {
|
||||
|
||||
private void registerCrate(ItemStack stack, String uid, boolean useOreDict) {
|
||||
if (!EnumSet.of(PluginManager.Stage.INIT).contains(PluginManager.getStage()))
|
||||
if (PluginManager.getStage() != PluginManager.Stage.INIT)
|
||||
throw new RuntimeException("Tried to make a crate outside of Init");
|
||||
|
||||
if (stack == null || stack.getItem() == null)
|
||||
|
||||
Reference in new issue
Block a user