Skip to content

Commit

Permalink
Fixed Crib Breaking Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Reyzerbit committed Oct 8, 2024
1 parent 6108ba8 commit 22b04b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/main/java/net/mca/entity/CribEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public boolean damage(DamageSource source, float amount)
}
else
{
CribItem matchingType = (CribItem) ItemsMCA.CRIBS.stream().filter(c -> ((CribItem) c).getColor() == getTrackedValue(COLOR) && ((CribItem) c).getWood() == getTrackedValue(WOOD)).findFirst().get().get();
CribItem matchingType = (CribItem) ItemsMCA.CRIBS.stream().filter(c -> ((CribItem) c.get()).getColor() == getTrackedValue(COLOR) && ((CribItem) c.get()).getWood() == getTrackedValue(WOOD)).findFirst().get().get();
Block.dropStack(this.getWorld(), this.getBlockPos(), new ItemStack(matchingType));
this.spawnBreakParticles();
this.kill();
Expand Down

0 comments on commit 22b04b1

Please sign in to comment.