forked from virt-mirrors/Sit
toggle keybinding
sit data to Data.java client events to Events.java
This commit is contained in:
parent
7d06735b3c
commit
ddf7703693
13 changed files with 294 additions and 124 deletions
|
@ -3,7 +3,6 @@ package one.oth3r.sit.utl;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.decoration.DisplayEntity;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import one.oth3r.sit.Sit;
|
||||
import one.oth3r.sit.file.FileData;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -41,7 +40,7 @@ public class LoopManager {
|
|||
|
||||
if (player.getVehicle() != null) {
|
||||
Entity entity = player.getVehicle();
|
||||
if (entity instanceof DisplayEntity.TextDisplayEntity tde && entity.getName().getString().equals(Sit.ENTITY_NAME)) {
|
||||
if (entity instanceof DisplayEntity.TextDisplayEntity tde && entity.getName().getString().equals(Data.ENTITY_NAME)) {
|
||||
// bind the entity to the player
|
||||
FileData.addSitEntity(player, tde);
|
||||
// check if the player is still allowed to sit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue