Skip to content

Commit

Permalink
Appears to have fixed #65
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaMachina committed Nov 21, 2020
1 parent eb31a13 commit 16c0f23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Ingredient getInput() {
}

public ItemStack getDrop() {
return drop;
return drop.copy();
}

public List<MeshWithChance> getRolls() {
Expand All @@ -51,7 +51,7 @@ protected RecipeSerializer getENSerializer() {

@Override
public ItemStack getRecipeOutput() {
return drop;
return drop.copy();
}

public boolean isWaterlogged() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ public void activateSieve(boolean isWaterlogged) {
drops.forEach((entry -> {
entry.getRolls().forEach(meshWithChance -> {
if(random.nextFloat() <= meshWithChance.getChance()) {
world.addEntity(new ItemEntity(world, pos.getX() + 0.5F, pos.getY() + 0.5F, pos.getZ() + 0.5F, entry.getDrop()));
logger.debug("Spawning Item: " + entry.getDrop());
world.addEntity(new ItemEntity(world, pos.getX() + 0.5F, pos.getY() + 1.1F, pos.getZ() + 0.5F, entry.getDrop()));
}
});
}));
Expand Down

0 comments on commit 16c0f23

Please sign in to comment.