24w20a, disable reset_chunk, relight, and chunk load events
This commit is contained in:
1 parent
9fd313a672
commit
c4f8c86520
13 files changed
+60
-32
No files matched your search
@@ -637,7 +637,7 @@ public class WorldAccess
|
||||
forceLoad = lv.get(blockArgument.offset).getBoolean();
|
||||
}
|
||||
ChunkAccess chunk = ((CarpetContext) c).level().getChunk(pos.getX() >> 4, pos.getZ() >> 4, ChunkStatus.EMPTY, forceLoad);
|
||||
return chunk == null ? Value.NULL : ValueConversions.of(BuiltInRegistries.CHUNK_STATUS.getKey(chunk.getStatus()));
|
||||
return chunk == null ? Value.NULL : ValueConversions.of(BuiltInRegistries.CHUNK_STATUS.getKey(chunk.getPersistedStatus()));
|
||||
});
|
||||
|
||||
expression.addContextFunction("chunk_tickets", -1, (c, t, lv) ->
|
||||
@@ -921,7 +921,7 @@ public class WorldAccess
|
||||
damageAmount = 2;
|
||||
}
|
||||
final int finalDamageAmount = damageAmount;
|
||||
tool.hurtAndBreak(damageAmount, world, null, () -> { if (finalDamageAmount > 0) toolBroke.setTrue(); } );
|
||||
tool.hurtAndBreak(damageAmount, world, null, (i) -> { if (finalDamageAmount > 0) toolBroke.setTrue(); } );
|
||||
if (!isUsingEffectiveTool)
|
||||
{
|
||||
dropLoot = false;
|
||||
@@ -1586,6 +1586,8 @@ public class WorldAccess
|
||||
// todo maybe enable chunk blending?
|
||||
expression.addContextFunction("reset_chunk", -1, (c, t, lv) ->
|
||||
{
|
||||
return Value.NULL;
|
||||
/*
|
||||
CarpetContext cc = (CarpetContext) c;
|
||||
List<ChunkPos> requestedChunks = new ArrayList<>();
|
||||
if (lv.size() == 1)
|
||||
@@ -1643,6 +1645,8 @@ public class WorldAccess
|
||||
)));
|
||||
});
|
||||
return result[0];
|
||||
|
||||
*/
|
||||
});
|
||||
|
||||
expression.addContextFunction("inhabited_time", -1, (c, t, lv) ->
|
||||
|
||||
Reference in new issue
Block a user