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

Fixed double-registration of basic machine recipes

This commit is contained in:
TheBusyBiscuit 2019-09-26 20:32:59 +02:00
parent dd5965eeac
commit 229b0f8e87
4 changed files with 20 additions and 0 deletions

View File

@ -44,6 +44,11 @@ public class Compressor extends MultiBlockMachine {
return recipes.stream().map(items -> items[0]).collect(Collectors.toList());
}
@Override
public void install() {
// Do nothing to prevent double-registration of recipes
}
@Override
public void onInteract(Player p, Block b) {
Block dispBlock = b.getRelative(BlockFace.DOWN);

View File

@ -44,6 +44,11 @@ public class Juicer extends MultiBlockMachine {
return recipes.stream().map(items -> items[0]).collect(Collectors.toList());
}
@Override
public void install() {
// Do nothing to prevent double-registration of recipes
}
@Override
public void onInteract(Player p, Block b) {
Block dispBlock = b.getRelative(BlockFace.DOWN);

View File

@ -48,6 +48,11 @@ public class OreCrusher extends MultiBlockMachine {
return recipes.stream().map(items -> items[0]).collect(Collectors.toList());
}
@Override
public void install() {
// Do nothing to prevent double-registration of recipes
}
@Override
public void onInteract(Player p, Block b) {
Block dispBlock = b.getRelative(BlockFace.DOWN);

View File

@ -42,6 +42,11 @@ public class PressureChamber extends MultiBlockMachine {
return recipes.stream().map(items -> items[0]).collect(Collectors.toList());
}
@Override
public void install() {
// Do nothing to prevent double-registration of recipes
}
@Override
public void onInteract(Player p, Block b) {
Block dispBlock = b.getRelative(BlockFace.UP).getRelative(BlockFace.UP);