1.20-pre2
This commit is contained in:
parent
8f8de066f6
commit
91df771011
6 changed files with 12 additions and 8 deletions
|
@ -96,8 +96,8 @@ public class GreenhouseControllerBlockEntity extends PowerAcceptorBlockEntity
|
|||
}
|
||||
}
|
||||
|
||||
if (block instanceof CropBlock) {
|
||||
processAgedCrop(blockState, blockPos, ((CropBlock) block).getAgeProperty(), ((CropBlock) block).getMaxAge(), 0);
|
||||
if (block instanceof CropBlock cropBlock) {
|
||||
processAgedCrop(blockState, blockPos, cropBlock.getAgeProperty(), ((CropBlock) block).getMaxAge(), 0);
|
||||
} else if (block instanceof NetherWartBlock) {
|
||||
processAgedCrop(blockState, blockPos, NetherWartBlock.AGE, 3, 0);
|
||||
} else if (block instanceof SweetBerryBushBlock) {
|
||||
|
|
|
@ -73,7 +73,7 @@ public class TechRebornTemplates {
|
|||
return 0;
|
||||
}
|
||||
|
||||
ctx.getSource().sendFeedback(Text.literal("done"), true);
|
||||
ctx.getSource().sendFeedback(() -> Text.literal("done"), true);
|
||||
|
||||
return Command.SINGLE_SUCCESS;
|
||||
}
|
||||
|
|
|
@ -35,4 +35,6 @@ accessible field net/minecraft/screen/ScreenHandler listeners Ljava/
|
|||
|
||||
accessible field net/minecraft/structure/pool/StructurePool elements Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
|
||||
|
||||
accessible method net/minecraft/block/CropBlock getAgeProperty ()Lnet/minecraft/state/property/IntProperty;
|
||||
|
||||
# DO NOT EDIT THIS FILE, edit the RebornCore AW, it will automatically be coped to this one.
|
Loading…
Add table
Add a link
Reference in a new issue