Skip to content

Commit

Permalink
Update Upstream (Apoli)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dueris committed Jul 14, 2024
1 parent b8fd6bb commit ea7ddf5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,10 @@ public void registerConditions() {
}

ResourceKey<LootItemCondition> predicateKey = ResourceKey.create(net.minecraft.core.registries.Registries.PREDICATE, data.getResourceLocation("predicate"));
LootItemCondition predicate = serverWorld.registryAccess().registryOrThrow(net.minecraft.core.registries.Registries.PREDICATE).getOrThrow(predicateKey);
LootItemCondition predicate = serverWorld.getServer().reloadableRegistries()
.get()
.registryOrThrow(net.minecraft.core.registries.Registries.PREDICATE)
.getOrThrow(predicateKey);

LootParams lootContextParameterSet = new LootParams.Builder(serverWorld)
.withParameter(LootContextParams.ORIGIN, entity.getHandle().position())
Expand Down

0 comments on commit ea7ddf5

Please sign in to comment.