Skip to content

Commit

Permalink
Merge pull request #36 from TheNextLvl-net/speed-fix
Browse files Browse the repository at this point in the history
Fix speed argument type in SpeedCommand
  • Loading branch information
NonSwag authored Oct 4, 2024
2 parents a3fb6a1 + 80ffff1 commit 251309d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private int reset(CommandContext<CommandSourceStack> context, SpeedType type, Li

private int speed(CommandContext<CommandSourceStack> context, SpeedType type, List<Entity> entities) {
var sender = context.getSource().getSender();
var speed = context.getArgument("speed", double.class) / 10d;
var speed = context.getArgument("speed", int.class) / 10d;

entities.removeIf(entity -> !(entity instanceof Attributable));
entities.forEach(entity -> {
Expand Down

0 comments on commit 251309d

Please sign in to comment.