mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
parent
85cc76a022
commit
34c20ac753
3 changed files with 7 additions and 7 deletions
|
@ -120,7 +120,7 @@ public class Utl {
|
|||
* @return null if not a valid block
|
||||
*/
|
||||
public static Double getSittingHeight(ServerPlayerEntity player, BlockPos blockPos, @Nullable BlockHitResult hit) {
|
||||
ServerWorld serverWorld = player.getServerWorld();
|
||||
ServerWorld serverWorld = player.getWorld();
|
||||
ServerConfig config = FileData.getServerConfig();
|
||||
BlockState blockState = serverWorld.getBlockState(blockPos);
|
||||
Block block = blockState.getBlock();
|
||||
|
@ -266,7 +266,7 @@ public class Utl {
|
|||
/// FYI it cant purge an entity from a disconnected player or unloaded chunks
|
||||
|
||||
// get a list of sit entities
|
||||
List<? extends DisplayEntity.TextDisplayEntity> list = player.getServerWorld()
|
||||
List<? extends DisplayEntity.TextDisplayEntity> list = player.getWorld()
|
||||
.getEntitiesByType(TypeFilter.instanceOf(DisplayEntity.TextDisplayEntity.class),
|
||||
entity -> entity.getName().getString().equals(Data.ENTITY_NAME));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue