mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Remove Initial Flicker
By Setting the Entity Tags in this lambda I am setting them before the entity is spawned. It removes the currently flicker of an armorstand when you place an item for the first time. Its a small thing but makes it that much more immersive & polished.
This commit is contained in:
parent
b4d2020a4d
commit
060b59dd0f
@ -46,13 +46,13 @@ public class ArmorStandUtils {
|
||||
*/
|
||||
@Nonnull
|
||||
public static ArmorStand spawnArmorStand(@Nonnull Location location) {
|
||||
ArmorStand armorStand = location.getWorld().spawn(location, ArmorStand.class);
|
||||
armorStand.setVisible(false);
|
||||
armorStand.setSilent(true);
|
||||
armorStand.setMarker(true);
|
||||
armorStand.setGravity(false);
|
||||
armorStand.setBasePlate(false);
|
||||
armorStand.setRemoveWhenFarAway(false);
|
||||
return armorStand;
|
||||
return location.getWorld().spawn(location, ArmorStand.class, armorStand -> {
|
||||
armorStand.setVisible(false);
|
||||
armorStand.setSilent(true);
|
||||
armorStand.setMarker(true);
|
||||
armorStand.setGravity(false);
|
||||
armorStand.setBasePlate(false);
|
||||
armorStand.setRemoveWhenFarAway(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user