@@ -2,7 +2,7 @@ use std::iter::zip;
22
33use clap:: { Arg as ClapArg , Parser , ValueEnum , ValueHint , error:: ErrorKind } ;
44use flecs_ecs:: {
5- core:: { Entity , EntityView , EntityViewGet , World , WorldGet , WorldProvider } ,
5+ core:: { Entity , EntityView , EntityViewGet , World , WorldGet , WorldProvider , id } ,
66 prelude:: { Component , Module } ,
77} ;
88use hyperion:: {
@@ -45,7 +45,7 @@ pub trait MinecraftCommand: Parser + CommandPermission {
4545 let mut on = world
4646 . entity ( )
4747 . set ( node_to_register)
48- . child_of_id ( get_root_command_entity ( ) ) ;
48+ . child_of ( get_root_command_entity ( ) ) ;
4949
5050 for arg in cmd. get_arguments ( ) {
5151 use valence_protocol:: packets:: play:: command_tree_s2c:: Parser as ValenceParser ;
@@ -56,7 +56,7 @@ pub trait MinecraftCommand: Parser + CommandPermission {
5656 ValenceParser :: String ( StringArg :: SingleWord ) ,
5757 ) ;
5858
59- on = world. entity ( ) . set ( node_to_register) . child_of_id ( on) ;
59+ on = world. entity ( ) . set ( node_to_register) . child_of ( on) ;
6060 }
6161
6262 let on_execute = |input : & str , system : EntityView < ' _ > , caller : Entity | {
@@ -315,7 +315,7 @@ impl MinecraftCommand for PermissionCommand {
315315 entity. entity_view ( world) . get :: < & mut Group > ( |group| {
316316 if * group != cmd. group {
317317 * group = cmd. group ;
318- entity. entity_view ( world) . modified :: < Group > ( ) ;
318+ entity. entity_view ( world) . modified ( id :: < Group > ( ) ) ;
319319 }
320320
321321 caller. entity_view ( world) . get :: < & ConnectionId > ( |stream| {
0 commit comments