Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit c396a6c

Browse files
authored
Remove unneeded setReturnValue
1 parent ae6e9c7 commit c396a6c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

patchwork-loot/src/main/java/net/patchworkmc/mixin/loot/MixinLootPoolSerializer.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ public class MixinLootPoolSerializer {
4444
private void addNameToConstructor(JsonElement elem, Type ty, JsonDeserializationContext ctx, CallbackInfoReturnable<LootPool> cir, JsonObject obj) {
4545
LootPool ret = cir.getReturnValue();
4646
((PatchworkLootPool) ret).patchwork$setName(LootHooks.readPoolName(obj));
47-
48-
// is this necessary?
49-
cir.setReturnValue(ret);
5047
}
5148

5249
@Redirect(method = "serialize", at = @At(value = "NEW", args = "class=com/google/gson/JsonObject"))

0 commit comments

Comments
 (0)