mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-31 04:46:40 +00:00
separate tile data into its own option in IrisBlockData
This commit is contained in:
@@ -62,6 +62,8 @@ public class IrisBlockData extends IrisRegistrant {
|
||||
private IrisBlockData backup = null;
|
||||
@Desc("Optional properties for this block data such as 'waterlogged': true")
|
||||
private KMap<String, Object> data = new KMap<>();
|
||||
@Desc("Optional tile data for this block data")
|
||||
private KMap<String, Object> tileData = new KMap<>();
|
||||
|
||||
public IrisBlockData(String b) {
|
||||
this.block = b;
|
||||
@@ -202,7 +204,7 @@ public class IrisBlockData extends IrisRegistrant {
|
||||
var type = getBlockData(data).getMaterial();
|
||||
if (!INMS.get().hasTile(type))
|
||||
return null;
|
||||
return new TileData().setMaterial(type).setProperties(this.data);
|
||||
return new TileData().setMaterial(type).setProperties(this.tileData);
|
||||
}
|
||||
|
||||
private String keyify(String dat) {
|
||||
|
||||
Reference in New Issue
Block a user