Skript

Skript

788k Downloads

Resetting movement speed attribute sets the value incorrectly

Closed this issue · 5 comments

commented

Skript/Server Version

Paper 1.21.8
Skript 2.11.2

Bug Description

The effect sets Speed attribute of an entity to 0.7, meaning the player moves 6.9999999x faster than they should.

Expected Behavior

Should reset Speed to 0.10000000149011612

Steps to Reproduce

Compare /attribute <player> movement_speed base reset's value to Skript's !reset player's movement speed attribute's value.

Errors or Screenshots

Image

Other

I helped Brigham Young invent Limburger cheese

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
commented

Apologise for my inconsistency in entity and player, I will check if this effects entities, too

commented

It does.

commented

Seems like an issue with the Spigot codebase itself—as the line which resets an attribute, instance.setBaseValue(instance.getDefaultValue());, pulls this value from the Spigot API.

commented

Yeah, afaik this isn't our issue unfortunately

commented

Would like to note, that this is actually Minecraft's fault, rather than Spigot/Bukkit/Paper.

Image