@@ -122,7 +122,7 @@ LL_TYPE_INSTANCE_HOOK(
122
122
if (!CallEvent (
123
123
EVENT_TYPES::onOpenContainer,
124
124
PlayerClass::newPlayer (static_cast <Player*>(actor)),
125
- BlockClass::newBlock (playerOpenContainerEvent.mBlockPos , actor->getDimension ().mId -> id )
125
+ BlockClass::newBlock (playerOpenContainerEvent.mBlockPos , actor->getDimensionId ().id )
126
126
)) {
127
127
return EventResult::StopProcessing;
128
128
}
@@ -146,7 +146,7 @@ LL_TYPE_INSTANCE_HOOK(
146
146
if (!CallEvent (
147
147
EVENT_TYPES::onCloseContainer,
148
148
PlayerClass::newPlayer (&player),
149
- BlockClass::newBlock (mPosition , player.getDimension ().mId -> id )
149
+ BlockClass::newBlock (mPosition , player.getDimensionId ().id )
150
150
)) {
151
151
return ;
152
152
}
@@ -170,7 +170,7 @@ LL_TYPE_INSTANCE_HOOK(
170
170
if (!CallEvent (
171
171
EVENT_TYPES::onCloseContainer,
172
172
PlayerClass::newPlayer (&player),
173
- BlockClass::newBlock (mPosition , player.getDimension ().mId -> id )
173
+ BlockClass::newBlock (mPosition , player.getDimensionId ().id )
174
174
)) {
175
175
return ;
176
176
}
@@ -222,7 +222,7 @@ LL_STATIC_HOOK(
222
222
if (!CallEvent (
223
223
EVENT_TYPES::onAttackBlock,
224
224
PlayerClass::newPlayer (&player),
225
- BlockClass::newBlock (pos, player.getDimension ().mId -> id ),
225
+ BlockClass::newBlock (pos, player.getDimensionId ().id ),
226
226
!item.isNull () ? ItemClass::newItem (&const_cast <ItemStack&>(item)) : Local<Value>()
227
227
)) {
228
228
isCancelled = true ;
@@ -233,7 +233,7 @@ LL_STATIC_HOOK(
233
233
if (!CallEvent (
234
234
EVENT_TYPES::onStartDestroyBlock,
235
235
PlayerClass::newPlayer (&player),
236
- BlockClass::newBlock (pos, player.getDimension ().mId -> id )
236
+ BlockClass::newBlock (pos, player.getDimensionId ().id )
237
237
)) {
238
238
isCancelled = true ;
239
239
}
@@ -258,7 +258,7 @@ LL_TYPE_INSTANCE_HOOK(
258
258
if (!CallEvent (
259
259
EVENT_TYPES::onUseFrameBlock,
260
260
PlayerClass::newPlayer (&player),
261
- BlockClass::newBlock (eventData.mPos , player.getDimension ().mId -> id )
261
+ BlockClass::newBlock (eventData.mPos , player.getDimensionId ().id )
262
262
)) {
263
263
return ;
264
264
}
@@ -280,7 +280,7 @@ LL_TYPE_INSTANCE_HOOK(
280
280
if (!CallEvent (
281
281
EVENT_TYPES::onUseFrameBlock,
282
282
PlayerClass::newPlayer (player),
283
- BlockClass::newBlock (pos, player->getDimension ().mId -> id )
283
+ BlockClass::newBlock (pos, player->getDimensionId ().id )
284
284
)) {
285
285
return false ;
286
286
}
@@ -378,7 +378,7 @@ LL_TYPE_INSTANCE_HOOK(
378
378
if (!CallEvent (
379
379
EVENT_TYPES::onBedEnter,
380
380
PlayerClass::newPlayer (this ),
381
- IntPos::newPos (pos, this ->getDimension ().mId -> id )
381
+ IntPos::newPos (pos, this ->getDimensionId ().id )
382
382
)) {
383
383
return BedSleepingResult::Ok;
384
384
}
@@ -464,9 +464,9 @@ LL_TYPE_INSTANCE_HOOK(
464
464
EVENT_TYPES::onUseBucketTake,
465
465
PlayerClass::newPlayer (&static_cast <Player&>(entity)),
466
466
ItemClass::newItem (&item),
467
- BlockClass::newBlock (pos, entity.getDimension ().mId -> id ),
467
+ BlockClass::newBlock (pos, entity.getDimensionId ().id ),
468
468
Number::newNumber (-1 ),
469
- FloatPos::newPos (pos, entity.getDimension ().mId -> id )
469
+ FloatPos::newPos (pos, entity.getDimensionId ().id )
470
470
)) {
471
471
return false ;
472
472
}
@@ -490,9 +490,9 @@ LL_TYPE_INSTANCE_HOOK(
490
490
EVENT_TYPES::onUseBucketTake,
491
491
PlayerClass::newPlayer (&static_cast <Player&>(entity)),
492
492
ItemClass::newItem (&item),
493
- BlockClass::newBlock (pos, entity.getDimension ().mId -> id ),
493
+ BlockClass::newBlock (pos, entity.getDimensionId ().id ),
494
494
Number::newNumber (-1 ),
495
- FloatPos::newPos (pos, entity.getDimension ().mId -> id )
495
+ FloatPos::newPos (pos, entity.getDimensionId ().id )
496
496
)) {
497
497
return false ;
498
498
}
@@ -521,7 +521,7 @@ LL_TYPE_INSTANCE_HOOK(
521
521
// ItemClass::newItem(&instance, false),
522
522
// EntityClass::newEntity(&entity),
523
523
// Number::newNumber(face),
524
- // FloatPos::newPos(pos, entity.getDimension ().mId-> id)
524
+ // FloatPos::newPos(pos, entity.getDimensionId ().id)
525
525
// );
526
526
// }
527
527
// IF_LISTENED_END(EVENT_TYPES::onUseBucketTake);
@@ -577,7 +577,7 @@ LL_TYPE_INSTANCE_HOOK(
577
577
EVENT_TYPES::onPlayerInteractEntity,
578
578
PlayerClass::newPlayer (this ),
579
579
EntityClass::newEntity (&actor),
580
- FloatPos::newPos (location, getDimension ().mId -> id )
580
+ FloatPos::newPos (location, getDimensionId ().id )
581
581
)) {
582
582
return false ;
583
583
}
0 commit comments