Skip to content

Commit 2419500

Browse files
committed
Merge branch 'dev/1.21.1' into release/1.21.1
2 parents cd0ccf2 + 3e8b0ef commit 2419500

4 files changed

Lines changed: 20 additions & 10 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ body:
4141
multiple: false
4242
options:
4343
- Own compiled build.
44-
- 1.21.1-0.7.51b (Latest 1.21.1)
44+
- 1.21.1-0.7.53b (Latest 1.21.1)
45+
- 1.21.1-0.7.52b
46+
- 1.21.1-0.7.51b
4547
- 1.21.1-0.7.50b
46-
- 1.21.1-0.7.49a
4748
- 1.20.4-0.7.43a (Latest 1.20.4)
4849
- 1.20.1-0.7.41r (Latest 1.20.1)
4950
- 1.20.1-0.7.40r

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1313

1414
## [1.21.1-0.7.52b] - 2025-07-06
1515

16+
### Fixed
17+
- Fixed a crash at initializing when patchouli is not installed
18+
- Fixed that some Inventory Manager functions can't be wrapped
19+
20+
## [1.21.1-0.7.53b] - 2025-07-09
21+
22+
### Fixed
23+
- [#762] Fixed that several lua functions would throw a `IllegalStateException`
24+
25+
## [1.21.1-0.7.52b] - 2025-07-06
26+
1627
Due to some internal changes and fixes, the minimum version of neoforge was raised to 21.1.186, minecolonies to 1.1.1020-1.21.1-snapshot and CC:Tweaked to 1.116.0
1728

1829
### Added

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/InventoryManagerPeripheral.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import dan200.computercraft.api.lua.LuaException;
44
import dan200.computercraft.api.lua.LuaFunction;
5-
import dan200.computercraft.api.lua.LuaTable;
65
import dan200.computercraft.api.lua.MethodResult;
6+
import dan200.computercraft.api.lua.ObjectLuaTable;
77
import de.srendi.advancedperipherals.AdvancedPeripherals;
88
import de.srendi.advancedperipherals.common.addons.computercraft.owner.BlockEntityPeripheralOwner;
99
import de.srendi.advancedperipherals.common.blocks.blockentities.InventoryManagerEntity;
@@ -55,8 +55,8 @@ public final String getOwner() throws LuaException {
5555
//The item is specified the same as with the RS/ME bridge:
5656
//{name="minecraft:enchanted_book", count=1, nbt="ae70053c97f877de546b0248b9ddf525"}
5757
@LuaFunction(mainThread = true)
58-
public final MethodResult addItemToPlayer(String invDirection, LuaTable<?, ?> item) throws LuaException {
59-
Pair<ItemFilter, String> filter = ItemFilter.parse(item);
58+
public final MethodResult addItemToPlayer(String invDirection, Map<?, ?> item) throws LuaException {
59+
Pair<ItemFilter, String> filter = ItemFilter.parse(new ObjectLuaTable(item));
6060
if (filter.rightPresent())
6161
return MethodResult.of(0, filter.getRight());
6262

@@ -80,8 +80,8 @@ private MethodResult addItemCommon(String invDirection, ItemFilter filter) throw
8080
}
8181

8282
@LuaFunction(mainThread = true)
83-
public final MethodResult removeItemFromPlayer(String invDirection, LuaTable<?, ?> item) throws LuaException {
84-
Pair<ItemFilter, String> filter = ItemFilter.parse(item);
83+
public final MethodResult removeItemFromPlayer(String invDirection, Map<?, ?> item) throws LuaException {
84+
Pair<ItemFilter, String> filter = ItemFilter.parse(new ObjectLuaTable(item));
8585
if (filter.rightPresent())
8686
return MethodResult.of(0, filter.getRight());
8787

src/main/java/de/srendi/advancedperipherals/common/events/Events.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
import net.neoforged.neoforge.event.CommandEvent;
1919
import net.neoforged.neoforge.event.ServerChatEvent;
2020
import net.neoforged.neoforge.event.entity.player.PlayerEvent;
21-
import vazkii.patchouli.api.PatchouliAPI;
22-
import vazkii.patchouli.common.base.PatchouliAPIImpl;
2321

2422
import java.util.function.Consumer;
2523

@@ -43,7 +41,7 @@ public static void onWorldJoin(PlayerEvent.PlayerLoggedInEvent event) {
4341
// See https://vazkiimods.github.io/Patchouli/docs/patchouli-basics/giving-new
4442
if (APConfig.WORLD_CONFIG.givePlayerBookOnJoin.get() && APAddon.PATCHOULI.isLoaded()) {
4543
if (!hasPlayedBefore(player)) {
46-
PatchouliAPI.IPatchouliAPI patchouli = new PatchouliAPIImpl();
44+
vazkii.patchouli.api.PatchouliAPI.IPatchouliAPI patchouli = vazkii.patchouli.api.PatchouliAPI.get();
4745
ItemStack book = patchouli.getBookStack(AdvancedPeripherals.getRL("manual"));
4846
player.addItem(book);
4947
}

0 commit comments

Comments
 (0)