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

Fixed Stone Chunk -> Cobblestone Recipe not working

This commit is contained in:
TheBusyBiscuit 2019-10-01 18:47:40 +02:00
parent 431892abb2
commit db0b6dfa90
2 changed files with 17 additions and 28 deletions

View File

@ -17,7 +17,7 @@ import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.RecipeDisplayIt
public class SlimefunMachine extends SlimefunItem implements RecipeDisplayItem { public class SlimefunMachine extends SlimefunItem implements RecipeDisplayItem {
protected List<ItemStack[]> recipes; protected List<ItemStack[]> recipes;
protected List<ItemStack> shownRecipes; protected List<ItemStack> shownRecipes;
private BlockFace trigger; private BlockFace trigger;
@Deprecated @Deprecated

View File

@ -28,13 +28,7 @@ public class Compressor extends MultiBlockMachine {
SlimefunItems.COMPRESSOR, SlimefunItems.COMPRESSOR,
"COMPRESSOR", "COMPRESSOR",
new ItemStack[] {null, null, null, null, new ItemStack(Material.NETHER_BRICK_FENCE), null, new ItemStack(Material.PISTON), new CustomItem(Material.DISPENSER, "Dispenser (Facing up)"), new ItemStack(Material.PISTON)}, new ItemStack[] {null, null, null, null, new ItemStack(Material.NETHER_BRICK_FENCE), null, new ItemStack(Material.PISTON), new CustomItem(Material.DISPENSER, "Dispenser (Facing up)"), new ItemStack(Material.PISTON)},
new ItemStack[] { new ItemStack[] {new CustomItem(SlimefunItems.STONE_CHUNK, 4), new ItemStack(Material.COBBLESTONE)},
new ItemStack(Material.COAL, 8), SlimefunItems.CARBON,
new CustomItem(SlimefunItems.STEEL_INGOT, 8), SlimefunItems.STEEL_PLATE,
new CustomItem(SlimefunItems.CARBON, 4), SlimefunItems.COMPRESSED_CARBON,
new CustomItem(SlimefunItems.STONE_CHUNK, 4), new ItemStack(Material.COBBLESTONE),
new CustomItem(SlimefunItems.REINFORCED_ALLOY_INGOT, 8), SlimefunItems.REINFORCED_PLATE
},
BlockFace.SELF BlockFace.SELF
); );
} }
@ -44,11 +38,6 @@ public class Compressor extends MultiBlockMachine {
return recipes.stream().map(items -> items[0]).collect(Collectors.toList()); return recipes.stream().map(items -> items[0]).collect(Collectors.toList());
} }
@Override
public void install() {
// Do nothing to prevent double-registration of recipes
}
@Override @Override
public void onInteract(Player p, Block b) { public void onInteract(Player p, Block b) {
Block dispBlock = b.getRelative(BlockFace.DOWN); Block dispBlock = b.getRelative(BlockFace.DOWN);