feat: update b122

This commit is contained in:
Reider745
2024-10-23 18:57:40 +03:00
parent 7ac52da910
commit 690fae9e06
14 changed files with 369 additions and 23 deletions
@@ -463,6 +463,12 @@ var GameAPI = {
isDedicatedServer: function(){
return isDedicatedServer();
},
getOption: function(name){
return MCOptions.get(name);
},
getOptions: function(){
return MCOptions.getOptions();
},
prevent: function() {
preventDefault();
},
@@ -1645,7 +1651,7 @@ var BlockRegistry = {
});
// vanilla bucket is patched in such way, that it will call this callback only for custom liquids in front of dispenser
ItemRegistry.registerDispenseFunction(emptyId, function(coords, item, region, slot) {
Callback.addCallback("ItemDispensed", function(coords, item, region, slot) {
if (item.data !== 0) return;
var dispenser = region.getBlockEntity(coords.x, coords.y, coords.z);
if (!dispenser) return;
@@ -3378,6 +3384,12 @@ var WorldAPI = {
Level.setBlockChangeCallbackEnabled(id, enabled);
},
blockChangeCallbacks: [],
addListenerChunkStateChaged: function(listener, states) {
Level.addListenerChunkStateChaged(listener, states);
},
addLocalListenerChunkStateChaged: function(listener, states) {
Level.addLocalListenerChunkStateChaged(listener, states);
},
registerBlockChangeCallback: function(ids, callback) {
if (!Array.isArray(ids)) {
ids = [ids];
+3 -3
View File
@@ -1,8 +1,8 @@
# Change resolution of pack that client should have to log into server.
# However, no deprecated or unimplemented methods will be added.
pack: Inner Core Test
pack-version: 2.3.0b120
pack-version-code: 160
pack: Inner Core
pack-version: 2.3.0b122
pack-version-code: 162
# Sets the list of mods and configs to load, you can specify
# name, folder name of a modpack from /modpacks or a path.