@@ -122,7 +122,7 @@ LL_TYPE_INSTANCE_HOOK(
122122 if (!CallEvent (
123123 EVENT_TYPES::onOpenContainer,
124124 PlayerClass::newPlayer (static_cast <Player*>(actor)),
125- BlockClass::newBlock (playerOpenContainerEvent.mBlockPos , actor->getDimension ().mId -> id )
125+ BlockClass::newBlock (playerOpenContainerEvent.mBlockPos , actor->getDimensionId ().id )
126126 )) {
127127 return EventResult::StopProcessing;
128128 }
@@ -146,7 +146,7 @@ LL_TYPE_INSTANCE_HOOK(
146146 if (!CallEvent (
147147 EVENT_TYPES::onCloseContainer,
148148 PlayerClass::newPlayer (&player),
149- BlockClass::newBlock (mPosition , player.getDimension ().mId -> id )
149+ BlockClass::newBlock (mPosition , player.getDimensionId ().id )
150150 )) {
151151 return ;
152152 }
@@ -170,7 +170,7 @@ LL_TYPE_INSTANCE_HOOK(
170170 if (!CallEvent (
171171 EVENT_TYPES::onCloseContainer,
172172 PlayerClass::newPlayer (&player),
173- BlockClass::newBlock (mPosition , player.getDimension ().mId -> id )
173+ BlockClass::newBlock (mPosition , player.getDimensionId ().id )
174174 )) {
175175 return ;
176176 }
@@ -222,7 +222,7 @@ LL_STATIC_HOOK(
222222 if (!CallEvent (
223223 EVENT_TYPES::onAttackBlock,
224224 PlayerClass::newPlayer (&player),
225- BlockClass::newBlock (pos, player.getDimension ().mId -> id ),
225+ BlockClass::newBlock (pos, player.getDimensionId ().id ),
226226 !item.isNull () ? ItemClass::newItem (&const_cast <ItemStack&>(item)) : Local<Value>()
227227 )) {
228228 isCancelled = true ;
@@ -233,7 +233,7 @@ LL_STATIC_HOOK(
233233 if (!CallEvent (
234234 EVENT_TYPES::onStartDestroyBlock,
235235 PlayerClass::newPlayer (&player),
236- BlockClass::newBlock (pos, player.getDimension ().mId -> id )
236+ BlockClass::newBlock (pos, player.getDimensionId ().id )
237237 )) {
238238 isCancelled = true ;
239239 }
@@ -258,7 +258,7 @@ LL_TYPE_INSTANCE_HOOK(
258258 if (!CallEvent (
259259 EVENT_TYPES::onUseFrameBlock,
260260 PlayerClass::newPlayer (&player),
261- BlockClass::newBlock (eventData.mPos , player.getDimension ().mId -> id )
261+ BlockClass::newBlock (eventData.mPos , player.getDimensionId ().id )
262262 )) {
263263 return ;
264264 }
@@ -280,7 +280,7 @@ LL_TYPE_INSTANCE_HOOK(
280280 if (!CallEvent (
281281 EVENT_TYPES::onUseFrameBlock,
282282 PlayerClass::newPlayer (player),
283- BlockClass::newBlock (pos, player->getDimension ().mId -> id )
283+ BlockClass::newBlock (pos, player->getDimensionId ().id )
284284 )) {
285285 return false ;
286286 }
@@ -378,7 +378,7 @@ LL_TYPE_INSTANCE_HOOK(
378378 if (!CallEvent (
379379 EVENT_TYPES::onBedEnter,
380380 PlayerClass::newPlayer (this ),
381- IntPos::newPos (pos, this ->getDimension ().mId -> id )
381+ IntPos::newPos (pos, this ->getDimensionId ().id )
382382 )) {
383383 return BedSleepingResult::Ok;
384384 }
@@ -464,9 +464,9 @@ LL_TYPE_INSTANCE_HOOK(
464464 EVENT_TYPES::onUseBucketTake,
465465 PlayerClass::newPlayer (&static_cast <Player&>(entity)),
466466 ItemClass::newItem (&item),
467- BlockClass::newBlock (pos, entity.getDimension ().mId -> id ),
467+ BlockClass::newBlock (pos, entity.getDimensionId ().id ),
468468 Number::newNumber (-1 ),
469- FloatPos::newPos (pos, entity.getDimension ().mId -> id )
469+ FloatPos::newPos (pos, entity.getDimensionId ().id )
470470 )) {
471471 return false ;
472472 }
@@ -490,9 +490,9 @@ LL_TYPE_INSTANCE_HOOK(
490490 EVENT_TYPES::onUseBucketTake,
491491 PlayerClass::newPlayer (&static_cast <Player&>(entity)),
492492 ItemClass::newItem (&item),
493- BlockClass::newBlock (pos, entity.getDimension ().mId -> id ),
493+ BlockClass::newBlock (pos, entity.getDimensionId ().id ),
494494 Number::newNumber (-1 ),
495- FloatPos::newPos (pos, entity.getDimension ().mId -> id )
495+ FloatPos::newPos (pos, entity.getDimensionId ().id )
496496 )) {
497497 return false ;
498498 }
@@ -521,7 +521,7 @@ LL_TYPE_INSTANCE_HOOK(
521521// ItemClass::newItem(&instance, false),
522522// EntityClass::newEntity(&entity),
523523// Number::newNumber(face),
524- // FloatPos::newPos(pos, entity.getDimension ().mId-> id)
524+ // FloatPos::newPos(pos, entity.getDimensionId ().id)
525525// );
526526// }
527527// IF_LISTENED_END(EVENT_TYPES::onUseBucketTake);
@@ -577,7 +577,7 @@ LL_TYPE_INSTANCE_HOOK(
577577 EVENT_TYPES::onPlayerInteractEntity,
578578 PlayerClass::newPlayer (this ),
579579 EntityClass::newEntity (&actor),
580- FloatPos::newPos (location, getDimension ().mId -> id )
580+ FloatPos::newPos (location, getDimensionId ().id )
581581 )) {
582582 return false ;
583583 }
0 commit comments