Skip to content

Commit

Permalink
Replace old ore(coal, iron, diamond) textures with procedurally gener…
Browse files Browse the repository at this point in the history
…ated ones.

Also remove ugly grass(I don't want this in the release. It can be easily readded once graphics and textures exist.
  • Loading branch information
IntegratedQuantum committed Feb 10, 2021
1 parent 4030ab1 commit c9fa918
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 292 deletions.
9 changes: 0 additions & 9 deletions cubyz-client/addons/cubyz/blocks/grass_vegetation

This file was deleted.

Binary file modified cubyz-client/addons/cubyz/blocks/textures/coal_ore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cubyz-client/addons/cubyz/blocks/textures/diamond_ore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified cubyz-client/addons/cubyz/blocks/textures/iron_ore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
282 changes: 0 additions & 282 deletions cubyz-client/assets/cubyz/models/3d/grass_herb.obj

This file was deleted.

6 changes: 5 additions & 1 deletion cubyz-common/src/io/cubyz/entity/ItemEntityManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import org.joml.Vector3f;

import io.cubyz.CubyzLogger;
import io.cubyz.blocks.Block;
import io.cubyz.items.Item;
import io.cubyz.items.ItemStack;
Expand Down Expand Up @@ -58,7 +59,10 @@ public ItemEntityManager(Surface surface, NormalChunk chunk, byte[] data, Palett
int length = Bits.getInt(data, index);
index += 4;
// Check if the length is right:
if(data.length-index != length*4*9) throw new IllegalStateException("Save file is corrupted.");
if(data.length-index != length*4*9) {
CubyzLogger.logger.warning("Save file is corrupted. Skipping item entites for chunk "+chunk.getWorldX()+" "+chunk.getWorldZ());
length = 0;
}
// Init variables:
capacity = (length+63) & ~63;
posxyz = new float[3 * capacity];
Expand Down

0 comments on commit c9fa918

Please sign in to comment.