1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-04-27 21:23:20 +00:00
SquidDev f6160bdc57 Fix players not getting advancements when they own turtles
When we construct a new ServerPlayerEntity (and thus TurtlePlayer), we
get the current (global) advancement state and call .setPlayer() on it.

As grantCriterion blocks FakePlayers from getting advancements, this
means a player will no longer receive any advancements, as the "wrong"
player object is being consulted.

As a temporary work around, we attempt to restore the previous player to
the advancement store. I'll try to upstream something into Forge to
resolve this properly.

Fixes #564
2020-10-31 10:59:24 +00:00
..
2020-01-24 09:12:29 +00:00
2020-06-03 21:44:08 +01:00
2020-01-28 22:23:43 +00:00
2020-06-27 10:23:51 +01:00