Skip to content

Commit

Permalink
Updated to 7.2-pre2
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessBullets committed Jun 24, 2024
1 parent a355f95 commit 4d672d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
org.gradle.jvmargs=-Xmx2G

# BTA
bta_version=7.2-pre1
bta_version=7.2-pre2

# Loader
loader_version=0.15.6-babric.6-bta
mod_menu_version=2.0.6

# HalpLibe
halplibe_version=4.0.5
halplibe_version=4.1.3

# Mod
mod_version=1.5.0-7.2-pre1
mod_version=1.5.0-7.2-pre2
mod_group=useless
mod_name=dragonfly
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void onBlockRemoved(World world, int x, int y, int z, int data) {
}
}
@Override
public boolean blockActivated(World world, int x, int y, int z, EntityPlayer player) {
public boolean onBlockRightClicked(World world, int x, int y, int z, EntityPlayer player, Side side, double xHit, double yHit) {
if (world.isClientSide) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public ItemDebugStick(String name, int id) {
super(name,id);
}
@Override
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int blockX, int blockY, int blockZ, Side side, double xPlaced, double yPlaced) {
public boolean onUseItemOnBlock(ItemStack stack, EntityPlayer player, World world, int blockX, int blockY, int blockZ, Side side, double xPlaced, double yPlaced) {
int meta = world.getBlockMetadata(blockX, blockY, blockZ);
int id = world.getBlockId(blockX, blockY, blockZ);
if (player.isSneaking()){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.useless.dragonfly.model.block;

import net.minecraft.client.Minecraft;
import net.minecraft.client.render.LightmapHelper;
import net.minecraft.client.render.block.color.BlockColorDispatcher;
import net.minecraft.client.render.block.model.BlockModelStandard;
import net.minecraft.client.render.stitcher.IconCoordinate;
Expand All @@ -9,6 +10,7 @@
import net.minecraft.core.block.Block;
import net.minecraft.core.util.helper.Side;
import net.minecraft.core.world.WorldSource;
import org.jetbrains.annotations.Nullable;
import org.lwjgl.opengl.GL11;
import org.useless.dragonfly.DragonFly;
import org.useless.dragonfly.helper.ModelHelper;
Expand Down Expand Up @@ -58,7 +60,7 @@ public boolean render(Tessellator tessellator, int x, int y, int z) {
}

@Override
public void renderBlockOnInventory(Tessellator tessellator, int metadata, float brightness, float alpha) {
public void renderBlockOnInventory(Tessellator tessellator, int metadata, float brightness, float alpha, @Nullable Integer lightmapCoordinate) {
float xOffset;
float yOffset;
float zOffset;
Expand Down Expand Up @@ -174,6 +176,9 @@ public void renderBlockOnInventory(Tessellator tessellator, int metadata, float
for (BlockCube cube: baseModel.blockCubes) {
for (BlockFace face: cube.getFaces().values()) {
tessellator.setNormal(face.getSide().getOffsetX(), face.getSide().getOffsetY(), face.getSide().getOffsetZ());
if (LightmapHelper.isLightmapEnabled() && lightmapCoordinate != null){
tessellator.setLightmapCoord(lightmapCoordinate);
}
float r = 1;
float g = 1;
float b = 1;
Expand Down

0 comments on commit 4d672d1

Please # to comment.