fixing carpet debug

This commit is contained in:
samo_lego 2020-07-16 11:40:19 +02:00
parent 791dc6b30c
commit f522334305
2 changed files with 4 additions and 4 deletions

View File

@ -29,6 +29,7 @@ import org.samo_lego.simpleauth.storage.SimpleAuthDatabase;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Properties;
import java.util.Timer;
@ -60,7 +61,7 @@ public class SimpleAuth implements DedicatedServerModInitializer {
}
// Getting game directory
public static final File gameDirectory = FabricLoader.getInstance().getGameDirectory();
public static final Path gameDirectory = FabricLoader.getInstance().getGameDir();
// Server properties
public static Properties serverProp = new Properties();

View File

@ -1,13 +1,12 @@
package org.samo_lego.simpleauth.utils;
//import carpet.patches.EntityPlayerMPFake;
import carpet.patches.EntityPlayerMPFake;
import net.minecraft.entity.player.PlayerEntity;
public class CarpetHelper {
// Checking if player is actually a fake one
// This is in its own class since we need carpet import
public static boolean isPlayerCarpetFake(PlayerEntity player) {
//return player instanceof EntityPlayerMPFake;
return false;
return player instanceof EntityPlayerMPFake;
}
}