forked from SpitefulFox/Avaritia
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from GTNewHorizons/fix/server-nei-crash
Fix server causing error with NEI
- Loading branch information
Showing
6 changed files
with
50 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/fox/spiteful/avaritia/compat/nei/NEIAvaritiaConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package fox.spiteful.avaritia.compat.nei; | ||
|
||
import net.minecraft.item.ItemStack; | ||
|
||
import codechicken.nei.api.API; | ||
import codechicken.nei.api.IConfigureNEI; | ||
import fox.spiteful.avaritia.compat.botania.ItemInfinitatoCostume; | ||
import fox.spiteful.avaritia.compat.botania.Tsundere; | ||
|
||
@SuppressWarnings("unused") | ||
public class NEIAvaritiaConfig implements IConfigureNEI { | ||
|
||
@Override | ||
public void loadConfig() { | ||
ExtremeShapedRecipeHandler shaped = new ExtremeShapedRecipeHandler(); | ||
ExtremeShapelessRecipeHandler shapeless = new ExtremeShapelessRecipeHandler(); | ||
CompressionHandler compress = new CompressionHandler(); | ||
API.registerRecipeHandler(shaped); | ||
API.registerRecipeHandler(shapeless); | ||
API.registerRecipeHandler(compress); | ||
API.registerUsageHandler(shaped); | ||
API.registerUsageHandler(shapeless); | ||
API.registerUsageHandler(compress); | ||
|
||
if (Tsundere.costumes != null) { | ||
for (int i = 0; i < ItemInfinitatoCostume.types.length; i++) { | ||
API.hideItem(new ItemStack(Tsundere.costumes, 1, i)); | ||
} | ||
} | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Avaritia NEI plugin"; | ||
} | ||
|
||
@Override | ||
public String getVersion() { | ||
return ""; | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
src/main/java/fox/spiteful/avaritia/compat/nei/NotEnough.java
This file was deleted.
Oops, something went wrong.