Closed rekmolly closed 8 years ago
Do you have a crash log?
Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc42ce750 in tid 18202 (Main Thread) r0 65282d00 r1 00000044 r2 c42ce748 r3 4790ff3e r4 61cf87f0 r5 4790ff1c r6 00000080 r7 42516bd3 r8 61cf87bc r9 65282d94 sl 648b67da fp 4790ff1c ip 6142ab00 sp 61cf8738 lr 6109b12f pc 60c3ce18 cpsr 680f0030
Hi! I try make custom dimension, but getting crash game.
Why is code dosent work? static std::unique_ptr (*Dimension$createNew_real)(DimensionId, Level &);
static std::unique_ptr Dimension$createNew_hook(DimensionId id, Level &level)
{
if(id == DimensionId::DIMENSION_NEW)
return std::unique_ptr(new NewDimension(level));
}
I also tried to specify the type of generator is its measurement but get an error in my code: std::unique_ptr NewDimension::_createGenerator(GeneratorType type){
}