mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-27 19:09:08 +00:00
Merge branch 'dev' of https://github.com/Xiao-MoMi/craft-engine into dev
This commit is contained in:
@@ -173,7 +173,7 @@ public abstract class Player extends AbstractEntity implements NetWorkUser {
|
||||
|
||||
public abstract void teleport(WorldPosition worldPosition);
|
||||
|
||||
public abstract void damage(double amount, Key damageType);
|
||||
public abstract void damage(double amount, Key damageType, @Nullable Object causeEntity);
|
||||
|
||||
public abstract Locale locale();
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public class DamageFunction<CTX extends Context> extends AbstractConditionalFunc
|
||||
|
||||
@Override
|
||||
protected void runInternal(CTX ctx) {
|
||||
selector.get(ctx).forEach(p -> p.damage(amount.getDouble(ctx), damageType));
|
||||
selector.get(ctx).forEach(p -> p.damage(amount.getDouble(ctx), damageType, null));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user