Skip to content

Commit

Permalink
[CI SKIP] Hotpatch for 1.20.2 so the master branch can be compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 20, 2024
1 parent 294fe83 commit f5a201a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ public void tick(Level level, BlockPos blockPos, BlockState blockState, WildChes
double z = blockPos.getZ() + level.getRandom().nextFloat();
for (String particle : chestData.getChestParticles()) {
try {
this.serverLevel.sendParticles(null, CraftParticle.toNMS(Particle.valueOf(particle)),
this.serverLevel.sendParticles(null,
CraftParticle.createParticleParam(Particle.valueOf(particle), null),
x, y, z, 0, 0.0, 0.0, 0.0, 1.0, false);
} catch (Exception ignored) {
}
Expand Down Expand Up @@ -219,7 +220,8 @@ public void tick(Level level, BlockPos blockPos, BlockState blockState, WildChes
Map<Integer, org.bukkit.inventory.ItemStack> leftOvers = chest.addItems(itemsToAdd);

if (leftOvers.isEmpty()) {
this.serverLevel.sendParticles(null, CraftParticle.toNMS(Particle.CLOUD),
this.serverLevel.sendParticles(null,
CraftParticle.createParticleParam(Particle.CLOUD, null),
itemEntity.getX(), itemEntity.getY(), itemEntity.getZ(),
0, 0.0, 0.0, 0.0, 1.0, false);
itemEntity.discard();
Expand Down

0 comments on commit f5a201a

Please sign in to comment.