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

Added Walshys suggested change

Co-authored-by: Daniel Walsh <walshydev@gmail.com>
This commit is contained in:
TheBusyBiscuit 2020-08-17 13:29:44 +02:00 committed by GitHub
parent c98fe74ea9
commit 33f6f039ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ public class RuneOfUnemployment extends SimpleSlimefunItem<EntityInteractHandler
v.setVillagerExperience(0); v.setVillagerExperience(0);
v.setProfession(Profession.NONE); v.setProfession(Profession.NONE);
double offset = ThreadLocalRandom.current().nextDouble(0, 0.5); double offset = ThreadLocalRandom.current().nextDouble(0.5);
v.getWorld().spawnParticle(Particle.CRIMSON_SPORE, v.getLocation(), 10, 0, offset / 2, 0,0.0d); v.getWorld().spawnParticle(Particle.CRIMSON_SPORE, v.getLocation(), 10, 0, offset / 2, 0,0.0d);
v.getWorld().spawnParticle(Particle.ENCHANTMENT_TABLE, v.getLocation(), 5, 0.04d, 1d, 0.04d); v.getWorld().spawnParticle(Particle.ENCHANTMENT_TABLE, v.getLocation(), 5, 0.04d, 1d, 0.04d);