@@ -110,9 +110,21 @@ void CaveV6::makeCave(v3s16 nmin, v3s16 nmax, int max_stone_height) {
110
110
(float )(ps->next () % ar.Z ) + 0.5
111
111
);
112
112
113
+ int notifytype = large_cave ? GENNOTIFY_LARGECAVE_BEGIN : GENNOTIFY_CAVE_BEGIN;
114
+ if (mg->gennotify & (1 << notifytype)) {
115
+ std::vector <v3s16> *nvec = mg->gen_notifications [notifytype];
116
+ nvec->push_back (v3s16 (of.X + orp.X , of.Y + orp.Y , of.Z + orp.Z ));
117
+ }
118
+
113
119
// Generate some tunnel starting from orp
114
120
for (u16 j = 0 ; j < tunnel_routepoints; j++)
115
121
makeTunnel (j % dswitchint == 0 );
122
+
123
+ notifytype = large_cave ? GENNOTIFY_LARGECAVE_END : GENNOTIFY_CAVE_END;
124
+ if (mg->gennotify & (1 << notifytype)) {
125
+ std::vector <v3s16> *nvec = mg->gen_notifications [notifytype];
126
+ nvec->push_back (v3s16 (of.X + orp.X , of.Y + orp.Y , of.Z + orp.Z ));
127
+ }
116
128
}
117
129
118
130
@@ -347,9 +359,21 @@ void CaveV7::makeCave(v3s16 nmin, v3s16 nmax, int max_stone_height) {
347
359
(float )(ps->next () % ar.Z ) + 0.5
348
360
);
349
361
362
+ int notifytype = large_cave ? GENNOTIFY_LARGECAVE_BEGIN : GENNOTIFY_CAVE_BEGIN;
363
+ if (mg->gennotify & (1 << notifytype)) {
364
+ std::vector <v3s16> *nvec = mg->gen_notifications [notifytype];
365
+ nvec->push_back (v3s16 (of.X + orp.X , of.Y + orp.Y , of.Z + orp.Z ));
366
+ }
367
+
350
368
// Generate some tunnel starting from orp
351
369
for (u16 j = 0 ; j < tunnel_routepoints; j++)
352
370
makeTunnel (j % dswitchint == 0 );
371
+
372
+ notifytype = large_cave ? GENNOTIFY_LARGECAVE_END : GENNOTIFY_CAVE_END;
373
+ if (mg->gennotify & (1 << notifytype)) {
374
+ std::vector <v3s16> *nvec = mg->gen_notifications [notifytype];
375
+ nvec->push_back (v3s16 (of.X + orp.X , of.Y + orp.Y , of.Z + orp.Z ));
376
+ }
353
377
}
354
378
355
379
0 commit comments