fixed missing config check for fake player fix
This commit is contained in:
parent
cc8c142a2b
commit
a431939dbf
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,8 @@ import iskallia.vault.research.StageManager;
|
||||||
import iskallia.vault.world.data.PlayerResearchesData;
|
import iskallia.vault.world.data.PlayerResearchesData;
|
||||||
import net.minecraft.server.level.ServerLevel;
|
import net.minecraft.server.level.ServerLevel;
|
||||||
import net.minecraft.world.entity.player.Player;
|
import net.minecraft.world.entity.player.Player;
|
||||||
|
import net.minecraftforge.common.util.FakePlayer;
|
||||||
|
import tv.alterNERD.VaultModTweaks.Configuration;
|
||||||
|
|
||||||
@Mixin(StageManager.class)
|
@Mixin(StageManager.class)
|
||||||
public abstract class MixinStageManager {
|
public abstract class MixinStageManager {
|
||||||
|
@ -69,6 +71,9 @@ public abstract class MixinStageManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ResearchTree overrideGetResearchTree(Player player) {
|
private static ResearchTree overrideGetResearchTree(Player player) {
|
||||||
|
if (!Configuration.FAKE_PLAYER_FIX.get() && player instanceof FakePlayer) {
|
||||||
|
return ResearchTree.empty();
|
||||||
|
}
|
||||||
if (player.level.isClientSide) {
|
if (player.level.isClientSide) {
|
||||||
return RESEARCH_TREE;
|
return RESEARCH_TREE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue