FoundationGames / Automobility

A Minecraft mod on the Fabric modloader which aims to add some useful vehicles.
MIT License
49 stars 25 forks source link

Crash Breaking Slopes #67

Open WenXin20 opened 10 months ago

WenXin20 commented 10 months ago

Minecraft v1.20.1 Forge v47.1.47 Automobility v0.4.2

When breaking a slope in survival with no tools, I got this crash. Crash Report

NateKDavis commented 9 months ago

I've got what looks to be the same crash. It will crash the client but not the server. It will happen when the breaking particles start regardless of what is used on it. The item on the ground, in inventory, and placed is fine. I did make a fresh install with just minecraft 1.20.1 and forge 47.2.1 and Automobility 0.4.2 and it still happened. I've got 3 people on my server that get the same error. Hope this info helps! Thanks! crash-2023-10-06_07.27.05-client.txt latest.log

BONOBONODEV commented 8 months ago

@Override public @NotNull List getQuads(@Nullable BlockState state, @Nullable Direction side, @NotNull RandomSource rand, @NotNull ModelData data, @Nullable RenderType renderType) { var quads = new ArrayList(); var geo = new ForgeGeometryBuilder(this.settings.getRotation().getMatrix(), side, quads); TextureAtlasSprite sprite = data.get(FRAME_SPRITE);

if (sprite != null) {
    this.buildSlopeGeometry(sprite, geo, unwrap(data.get(FRAME_COLOR)), unwrap(data.get(BORDERED_LEFT)), unwrap(data.get(BORDERED_RIGHT)));
}
return quads;
}
BONOBONODEV commented 8 months ago

fix

calinado commented 5 months ago

getting the same exact error and crash log on 1.20.1

calinado commented 4 months ago

would love a fix for this, cars move too fast and glitch out on stairs and slabs and we are trying to build a highway for our survival server. slopes are much needed for this mod to traverse up and down

J2-Tech commented 2 months ago

Same issue here, please fix

INV-PLA commented 1 month ago

Same issue here, please fix

How to use fix? I haven't been exposed to building before