forked from sorceress/EasyAuth
fixing carpet debug
This commit is contained in:
parent
791dc6b30c
commit
f522334305
|
@ -29,6 +29,7 @@ import org.samo_lego.simpleauth.storage.SimpleAuthDatabase;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Path;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.Timer;
|
import java.util.Timer;
|
||||||
|
@ -60,7 +61,7 @@ public class SimpleAuth implements DedicatedServerModInitializer {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getting game directory
|
// Getting game directory
|
||||||
public static final File gameDirectory = FabricLoader.getInstance().getGameDirectory();
|
public static final Path gameDirectory = FabricLoader.getInstance().getGameDir();
|
||||||
|
|
||||||
// Server properties
|
// Server properties
|
||||||
public static Properties serverProp = new Properties();
|
public static Properties serverProp = new Properties();
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
package org.samo_lego.simpleauth.utils;
|
package org.samo_lego.simpleauth.utils;
|
||||||
|
|
||||||
//import carpet.patches.EntityPlayerMPFake;
|
import carpet.patches.EntityPlayerMPFake;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
|
||||||
public class CarpetHelper {
|
public class CarpetHelper {
|
||||||
// Checking if player is actually a fake one
|
// Checking if player is actually a fake one
|
||||||
// This is in its own class since we need carpet import
|
// This is in its own class since we need carpet import
|
||||||
public static boolean isPlayerCarpetFake(PlayerEntity player) {
|
public static boolean isPlayerCarpetFake(PlayerEntity player) {
|
||||||
//return player instanceof EntityPlayerMPFake;
|
return player instanceof EntityPlayerMPFake;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue