running functions will cause them not track the commandsource. fixes #815
This commit is contained in:
1 parent
18705e44ba
commit
38285d4221
1 file changed
+4
-6
@@ -37,7 +37,7 @@ public class FixedCommandSource extends ServerCommandSource
|
|||||||
public FixedCommandSource(ServerCommandSource original, Vec3d pos, Value[] error, List<Value> chatOutput)
|
public FixedCommandSource(ServerCommandSource original, Vec3d pos, Value[] error, List<Value> chatOutput)
|
||||||
{
|
{
|
||||||
super(CommandOutput.DUMMY, pos, Vec2f.ZERO, original.getWorld(), CarpetSettings.runPermissionLevel,
|
super(CommandOutput.DUMMY, pos, Vec2f.ZERO, original.getWorld(), CarpetSettings.runPermissionLevel,
|
||||||
original.getName(), original.getDisplayName(), original.getMinecraftServer(), original.getEntity(), true,
|
original.getName(), original.getDisplayName(), original.getMinecraftServer(), original.getEntity(), false,
|
||||||
(ctx, succ, res) -> { }, EntityAnchorArgumentType.EntityAnchor.FEET);
|
(ctx, succ, res) -> { }, EntityAnchorArgumentType.EntityAnchor.FEET);
|
||||||
position = pos;
|
position = pos;
|
||||||
world = original.getWorld();
|
world = original.getWorld();
|
||||||
@@ -80,11 +80,9 @@ public class FixedCommandSource extends ServerCommandSource
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
//@Override // only used in fuctions and we really don't care to track these actually, besides the basic output
|
||||||
public ServerCommandSource withSilent()
|
// also other overrides target ONLY execute command, which withSilent doesn't care bout.
|
||||||
{
|
//public ServerCommandSource withSilent() { return this; }
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ServerCommandSource withLevel(int level)
|
public ServerCommandSource withLevel(int level)
|
||||||
|
|||||||
Reference in new issue
Block a user