mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-26 12:57:58 +01:00
Testing implementation
This commit is contained in:
parent
1d2da07756
commit
041e06b0b7
1 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ public class DeployerMovementBehaviour implements MovementBehaviour {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
activate(context, pos, player, mode);
|
activate(context, pos, player, mode);
|
||||||
checkForPlacementAdvancement();
|
checkForPlacementAdvancement(context, player);
|
||||||
tryDisposeOfExcess(context);
|
tryDisposeOfExcess(context);
|
||||||
context.stall = player.blockBreakingProgress != null;
|
context.stall = player.blockBreakingProgress != null;
|
||||||
}
|
}
|
||||||
|
@ -109,10 +109,10 @@ public class DeployerMovementBehaviour implements MovementBehaviour {
|
||||||
DeployerHandler.activate(player, vec, pos, facingVec, mode);
|
DeployerHandler.activate(player, vec, pos, facingVec, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void checkForPlacementAdvancement() {
|
protected void checkForPlacementAdvancement(MovementContext context, DeployerFakePlayer player) {
|
||||||
if ((context.contraption instanceof MountedContraption || context.contraption instanceof CarriageContraption)
|
if ((context.contraption instanceof MountedContraption || context.contraption instanceof CarriageContraption)
|
||||||
&& player.placedTracks && context.blockEntityData != null && context.blockEntityData.contains("Owner"))
|
&& player.placedTracks && context.blockEntityData != null && context.blockEntityData.contains("Owner"))
|
||||||
AllAdvancements.SELF_DEPLOYING.awardTo(world.getPlayerByUUID(context.blockEntityData.getUUID("Owner")));
|
AllAdvancements.SELF_DEPLOYING.awardTo(context.world.getPlayerByUUID(context.blockEntityData.getUUID("Owner")));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void activateAsSchematicPrinter(MovementContext context, BlockPos pos, DeployerFakePlayer player,
|
protected void activateAsSchematicPrinter(MovementContext context, BlockPos pos, DeployerFakePlayer player,
|
||||||
|
|
Loading…
Reference in a new issue