move sitEntities list to Data from FileData

This commit is contained in:
Oth3r 2024-11-15 11:19:39 -06:00
commit 09f5e31544
6 changed files with 30 additions and 33 deletions

View file

@ -13,7 +13,6 @@ import net.minecraft.util.math.BlockPos;
import one.oth3r.sit.utl.Data;
import one.oth3r.sit.utl.Logic;
import one.oth3r.sit.utl.Utl;
import one.oth3r.sit.file.FileData;
import java.util.concurrent.CompletableFuture;
@ -67,7 +66,7 @@ public class SitCommand {
}
// if already sitting, ignore
if (FileData.getSitEntity(player) != null) return 1;
if (Data.getSitEntity(player) != null) return 1;
// try to make the player sit
Logic.sit(player, pos, null);