Compare commits

..
3 Commits
Author SHA1 Message Date
koolkrafter5 e1d8a847a9 Fix rounding in negative axes (#58) 2025-07-14 18:23:49 +02:00
Maya 38fb7fc71f update 2025-07-02 17:01:56 -06:00
mamePiandMartin Robertz 6479b0b635 Added functions into kami boots (#57)
Co-authored-by: Martin Robertz <[email protected]>
2025-07-02 17:01:21 -06:00
2 changed files with 7 additions and 6 deletions

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@
dependencies {
api('com.github.GTNewHorizons:Baubles-Expanded:2.1.9-GTNH:dev')
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-649-GTNH:api')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-652-GTNH:api')
api('com.github.GTNewHorizons:ThaumicBoots:1.4.7:dev') {
exclude group: 'com.github.GTNewHorizons', module: 'Electro-Magic-Tools'
exclude module: 'Baubles'
@@ -15,11 +15,11 @@ dependencies {
compileOnly('com.github.GTNewHorizons:EnderStorage:1.7.3:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:waila:1.8.10:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.13.40-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.6.6:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.6.7:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:CodeChickenCore:1.4.3:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:OpenComputers:1.11.16-GTNH:api') {transitive=false}
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:api') {transitive=false}
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.362:dev") {transitive=false}
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.368:dev") {transitive=false}
compileOnly('curse.maven:computercraft-67504:2269339')
compileOnly('curse.maven:cofh-core-69162:2388751')
@@ -20,6 +20,7 @@ import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraftforge.event.entity.living.LivingEvent.LivingJumpEvent;
import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;
@@ -76,9 +77,9 @@ public class ItemGemBoots extends ItemIchorclothArmorAdv implements IBoots {
player.fallDistance = 0F;
if (ConfigHandler.shouldKamiBootsDoGrass) {
int x = (int) player.posX;
int y = (int) player.posY - 1;
int z = (int) player.posZ;
int x = MathHelper.floor_double(player.posX);
int y = MathHelper.floor_double(player.posY) - 1;
int z = MathHelper.floor_double(player.posZ);
if (player.worldObj.getBlock(x, y, z) == Blocks.dirt && player.worldObj.getBlockMetadata(x, y, z) == 0)
player.worldObj.setBlock(x, y, z, Blocks.grass, 0, 2);
}