add a Towelette plugin to blacklist our fluids, fixes the game not loading
This commit is contained in:
parent
75d9bccd6a
commit
eca7aaa34f
9 changed files with 50 additions and 9 deletions
|
@ -57,6 +57,9 @@ repositories {
|
|||
name = 'curseforge'
|
||||
url = 'https://minecraft.curseforge.com/api/maven'
|
||||
}
|
||||
maven {
|
||||
url 'https://jitpack.io'
|
||||
}
|
||||
}
|
||||
|
||||
version = "3.0.5"
|
||||
|
@ -109,6 +112,10 @@ dependencies {
|
|||
|
||||
compile 'org.checkerframework:checker-qual:2.10.0'
|
||||
compileOnly "com.google.code.findbugs:jsr305:+"
|
||||
|
||||
modCompile ('com.github.Virtuoel:Towelette:519538e54b') {
|
||||
transitive = false
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
package techreborn.rei;
|
||||
package techreborn.compat.rei;
|
||||
|
||||
import com.mojang.blaze3d.platform.GlStateManager;
|
||||
import me.shedaniel.rei.api.*;
|
|
@ -22,7 +22,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
package techreborn.rei;
|
||||
package techreborn.compat.rei;
|
||||
|
||||
import me.shedaniel.rei.api.RecipeDisplay;
|
||||
import net.minecraft.item.ItemStack;
|
|
@ -22,7 +22,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
package techreborn.rei;
|
||||
package techreborn.compat.rei;
|
||||
|
||||
import me.shedaniel.rei.api.REIPluginEntry;
|
||||
import me.shedaniel.rei.api.RecipeDisplay;
|
||||
|
@ -39,8 +39,8 @@ import techreborn.api.recipe.recipes.*;
|
|||
import techreborn.init.ModRecipes;
|
||||
import techreborn.init.TRContent;
|
||||
import techreborn.init.TRContent.Machine;
|
||||
import techreborn.rei.rollingmachine.RollingMachineCategory;
|
||||
import techreborn.rei.rollingmachine.RollingMachineDisplay;
|
||||
import techreborn.compat.rei.rollingmachine.RollingMachineCategory;
|
||||
import techreborn.compat.rei.rollingmachine.RollingMachineDisplay;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
|
@ -22,7 +22,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
package techreborn.rei.rollingmachine;
|
||||
package techreborn.compat.rei.rollingmachine;
|
||||
|
||||
import me.shedaniel.rei.api.Renderable;
|
||||
import me.shedaniel.rei.api.Renderer;
|
||||
|
@ -33,7 +33,7 @@ import net.minecraft.util.Identifier;
|
|||
import reborncore.common.crafting.RebornRecipeType;
|
||||
import reborncore.common.util.StringUtils;
|
||||
import techreborn.api.recipe.recipes.RollingMachineRecipe;
|
||||
import techreborn.rei.ReiPlugin;
|
||||
import techreborn.compat.rei.ReiPlugin;
|
||||
|
||||
public class RollingMachineCategory extends DefaultCraftingCategory {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package techreborn.rei.rollingmachine;
|
||||
package techreborn.compat.rei.rollingmachine;
|
||||
|
||||
import me.shedaniel.rei.plugin.DefaultShapedDisplay;
|
||||
import net.minecraft.recipe.ShapedRecipe;
|
|
@ -0,0 +1,27 @@
|
|||
package techreborn.compat.towelette;
|
||||
|
||||
import net.minecraft.fluid.Fluid;
|
||||
import net.minecraft.util.Identifier;
|
||||
import techreborn.init.ModFluids;
|
||||
import virtuoel.towelette.api.ToweletteApi;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class TowelettePlugin implements ToweletteApi {
|
||||
|
||||
private List<Fluid> fluids;
|
||||
|
||||
@Override
|
||||
public boolean isFluidBlacklisted(Fluid fluid, Identifier id) {
|
||||
if(fluids == null){
|
||||
fluids = new ArrayList<>();
|
||||
Arrays.stream(ModFluids.values()).forEach(modFluids -> {
|
||||
fluids.add(modFluids.getFluid());
|
||||
fluids.add(modFluids.getFlowingFluid());
|
||||
});
|
||||
}
|
||||
return fluids.contains(fluid);
|
||||
}
|
||||
}
|
|
@ -107,6 +107,10 @@ public enum ModFluids {
|
|||
return stillFluid;
|
||||
}
|
||||
|
||||
public RebornFluid getFlowingFluid() {
|
||||
return flowingFluid;
|
||||
}
|
||||
|
||||
public RebornFluidBlock getBlock() {
|
||||
return block;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,10 @@
|
|||
"techreborn.TechRebornClient"
|
||||
],
|
||||
"rei_plugins": [
|
||||
"techreborn.rei.ReiPlugin"
|
||||
"techreborn.compat.rei.ReiPlugin"
|
||||
],
|
||||
"towelette": [
|
||||
"techreborn.compat.towelette.TowelettePlugin"
|
||||
]
|
||||
},
|
||||
"depends": {
|
||||
|
|
Loading…
Add table
Reference in a new issue