Skip to content

Commit

Permalink
Stop fake players from bloodcasting
Browse files Browse the repository at this point in the history
  • Loading branch information
beholderface committed Feb 8, 2025
1 parent ef2cd28 commit 49ef1c2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ protected long extractMediaFromInventory(long costLeft, boolean allowOvercast, b
}

protected boolean canOvercast() {
//bad deployer, no more infinite bloodcasting for you
if (this.caster.getClass() != ServerPlayer.class){
return false;
}
var adv = this.world.getServer().getAdvancements().getAdvancement(modLoc("y_u_no_cast_angy"));
var advs = this.caster.getAdvancements();
return advs.getOrStartProgress(adv).isDone();
Expand Down

0 comments on commit 49ef1c2

Please sign in to comment.