forked from virt-mirrors/Sit
move sitEntities list to Data from FileData
This commit is contained in:
parent
8f89a049f9
commit
09f5e31544
6 changed files with 30 additions and 33 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue