Skip to content

Commit

Permalink
fix RL
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed Jan 1, 2024
1 parent b31001d commit 56bca74
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/generated/resources/assets/examplemod/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"block.examplemod.example_block": "Test Example Block",
"block.examplemod.examplemod": "Examplemod",
"block.examplemod.example_fluid": "Example fluid",
"fluid_type.examplemod.example_fluid": "Example fluid",
"item.examplemod.example_item": "Test Example Item",
"item.examplemod.examplemod": "Examplemod"
"item.examplemod.example_item": "Test Example Item"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "minecraft:block",
"random_sequence": "examplemod:blocks/example_fluid"
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ public EnderDeferredFluid<T> createFluid(Consumer<BaseFlowingFluid.Properties> c
}

public EnderDeferredBlock.EnderDeferredLiquidBlock<? extends LiquidBlock> withBlock(Function<Supplier<BaseFlowingFluid.Flowing>, ? extends LiquidBlock> supplier) {
this.block = BLOCKS.registerLiquidBlock(getId().getNamespace(), () -> supplier.apply(this.flowingFluid)).setFluid(this);
this.block = BLOCKS.registerLiquidBlock(getId().getPath(), () -> supplier.apply(this.flowingFluid)).setFluid(this);
return this.block;
}

public EnderDeferredItem.EnderDeferredBucketItem<? extends BucketItem> withBucket(Function<Supplier<BaseFlowingFluid.Source>, ? extends BucketItem> supplier) {
this.bucket = ITEMS.registerBucket(getId().getNamespace(), () -> supplier.apply(this.sourceFluid)).setFluid(this);
this.bucket = ITEMS.registerBucket(getId().getPath(), () -> supplier.apply(this.sourceFluid)).setFluid(this);
return this.bucket;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public static class EnderDeferredBucketItem<T extends BucketItem> extends EnderD
protected EnderDeferredBucketItem(ResourceKey<Item> key) {
super(key);
this.modelProvider = EnderItemModelProvider::bucketItem;
setTranslation("");
}

public EnderDeferredBucketItem<T> setFluid(EnderDeferredFluid<? extends FluidType> fluid) {
Expand Down

0 comments on commit 56bca74

Please sign in to comment.