1.16.2-rc1
This commit is contained in:
parent
cfd9c7f10c
commit
6e001dd9cc
6 changed files with 11 additions and 11 deletions
|
@ -73,12 +73,12 @@ configurations.all {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "com.mojang:minecraft:1.16.2-pre1"
|
minecraft "com.mojang:minecraft:1.16.2-rc1"
|
||||||
mappings "net.fabricmc:yarn:1.16.2-pre1+build.13:v2"
|
mappings "net.fabricmc:yarn:1.16.2-rc1+build.4:v2"
|
||||||
modImplementation "net.fabricmc:fabric-loader:0.9.0+build.204"
|
modImplementation "net.fabricmc:fabric-loader:0.9.1+build.205"
|
||||||
|
|
||||||
//Fabric api
|
//Fabric api
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api:0.16.1+build.387-1.16"
|
modImplementation "net.fabricmc.fabric-api:fabric-api:0.17.0+build.393-1.16"
|
||||||
|
|
||||||
disabledOptionalDependency ("me.shedaniel:RoughlyEnoughItems:4.10.2")
|
disabledOptionalDependency ("me.shedaniel:RoughlyEnoughItems:4.10.2")
|
||||||
disabledOptionalDependency ('io.github.cottonmc:LibCD:2.4.1+1.15.2')
|
disabledOptionalDependency ('io.github.cottonmc:LibCD:2.4.1+1.15.2')
|
||||||
|
|
|
@ -81,7 +81,7 @@ public class LightningRodBlockEntity extends PowerAcceptorBlockEntity implements
|
||||||
}
|
}
|
||||||
|
|
||||||
LightningEntity lightningBolt = EntityType.LIGHTNING_BOLT.create(world);
|
LightningEntity lightningBolt = EntityType.LIGHTNING_BOLT.create(world);
|
||||||
lightningBolt.method_29495(Vec3d.ofBottomCenter(world.getTopPosition(Heightmap.Type.MOTION_BLOCKING, getPos())));
|
lightningBolt.refreshPositionAfterTeleport(Vec3d.ofBottomCenter(world.getTopPosition(Heightmap.Type.MOTION_BLOCKING, getPos())));
|
||||||
|
|
||||||
if (!world.isClient) {
|
if (!world.isClient) {
|
||||||
world.spawnEntity(lightningBolt);
|
world.spawnEntity(lightningBolt);
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class GuiGreenhouseController extends GuiBase<BuiltScreenHandler> {
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
matrixStack.push();
|
matrixStack.push();
|
||||||
method_30901(matrixStack, list, mouseX, mouseY);
|
renderTooltip(matrixStack, list, mouseX, mouseY);
|
||||||
matrixStack.pop();
|
matrixStack.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ public class GuiGreenhouseController extends GuiBase<BuiltScreenHandler> {
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
RenderSystem.pushMatrix();
|
RenderSystem.pushMatrix();
|
||||||
method_30901(matrixStack, list, mouseX - getGuiLeft(), mouseY - getGuiTop());
|
renderTooltip(matrixStack, list, mouseX - getGuiLeft(), mouseY - getGuiTop());
|
||||||
RenderSystem.popMatrix();
|
RenderSystem.popMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ public class GuiIronFurnace extends GuiBase<BuiltScreenHandler> {
|
||||||
|
|
||||||
List<Text> list = new ArrayList<>();
|
List<Text> list = new ArrayList<>();
|
||||||
list.add(new LiteralText(message));
|
list.add(new LiteralText(message));
|
||||||
method_30901(matrixStack, list, mouseX, mouseY);
|
renderTooltip(matrixStack, list, mouseX, mouseY);
|
||||||
GlStateManager.disableLighting();
|
GlStateManager.disableLighting();
|
||||||
GlStateManager.color4f(1, 1, 1, 1);
|
GlStateManager.color4f(1, 1, 1, 1);
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,8 @@ public class FurnaceFuelSlot extends BaseSlot {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getMaxStackAmount(ItemStack stack) {
|
public int getMaxItemCount(ItemStack stack) {
|
||||||
return isBucket(stack) ? 1 : super.getMaxStackAmount(stack);
|
return isBucket(stack) ? 1 : super.getMaxItemCount(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isBucket(ItemStack stack) {
|
public static boolean isBucket(ItemStack stack) {
|
||||||
|
|
|
@ -27,11 +27,11 @@ package techreborn.items;
|
||||||
import net.fabricmc.api.EnvType;
|
import net.fabricmc.api.EnvType;
|
||||||
import net.fabricmc.api.Environment;
|
import net.fabricmc.api.Environment;
|
||||||
import net.minecraft.client.item.TooltipContext;
|
import net.minecraft.client.item.TooltipContext;
|
||||||
import net.minecraft.datafixer.NbtOps;
|
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.ItemUsageContext;
|
import net.minecraft.item.ItemUsageContext;
|
||||||
|
import net.minecraft.nbt.NbtOps;
|
||||||
import net.minecraft.text.LiteralText;
|
import net.minecraft.text.LiteralText;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.text.TranslatableText;
|
import net.minecraft.text.TranslatableText;
|
||||||
|
|
Loading…
Reference in a new issue