mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-03 08:26:11 +00:00
separate tile data into its own option in IrisBlockData
This commit is contained in:
parent
b6dc934198
commit
b468478fcb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user