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:
parent
dd5965eeac
commit
229b0f8e87
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user