Disable capabilities for empty ItemStacks.
This commit is contained in:
parent
e498dc7532
commit
b067435fa3
2 changed files with 8 additions and 8 deletions
|
@ -242,13 +242,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "com.mojang:realms:1.10.3",
|
"name": "com.mojang:realms:1.10.4",
|
||||||
"downloads": {
|
"downloads": {
|
||||||
"artifact": {
|
"artifact": {
|
||||||
"size": 3024330,
|
"size": 3025166,
|
||||||
"sha1": "36df12c4c7d6634ef763d0adcbd0955020c56e5e",
|
"sha1": "7e837a5eae3fc08b13d5e1baf5ddf5b5d31aa2ff",
|
||||||
"path": "com/mojang/realms/1.10.3/realms-1.10.3.jar",
|
"path": "com/mojang/realms/1.10.4/realms-1.10.4.jar",
|
||||||
"url": "https://libraries.minecraft.net/com/mojang/realms/1.10.3/realms-1.10.3.jar"
|
"url": "https://libraries.minecraft.net/com/mojang/realms/1.10.4/realms-1.10.4.jar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -558,6 +558,6 @@
|
||||||
"minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userType ${user_type} --versionType ${version_type}",
|
"minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userType ${user_type} --versionType ${version_type}",
|
||||||
"minimumLauncherVersion": 18,
|
"minimumLauncherVersion": 18,
|
||||||
"releaseTime": "2016-11-14T14:34:40+00:00",
|
"releaseTime": "2016-11-14T14:34:40+00:00",
|
||||||
"time": "2016-11-15T10:00:11+00:00",
|
"time": "2016-11-16T14:39:37+00:00",
|
||||||
"type": "release"
|
"type": "release"
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,12 +209,12 @@
|
||||||
|
|
||||||
+ public boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability, net.minecraft.util.EnumFacing facing)
|
+ public boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability, net.minecraft.util.EnumFacing facing)
|
||||||
+ {
|
+ {
|
||||||
+ return this.capabilities == null ? false : this.capabilities.hasCapability(capability, facing);
|
+ return this.field_190928_g || this.capabilities == null ? false : this.capabilities.hasCapability(capability, facing);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ public <T> T getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, net.minecraft.util.EnumFacing facing)
|
+ public <T> T getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, net.minecraft.util.EnumFacing facing)
|
||||||
+ {
|
+ {
|
||||||
+ return this.capabilities == null ? null : this.capabilities.getCapability(capability, facing);
|
+ return this.field_190928_g || this.capabilities == null ? null : this.capabilities.getCapability(capability, facing);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ public void deserializeNBT(NBTTagCompound nbt)
|
+ public void deserializeNBT(NBTTagCompound nbt)
|
||||||
|
|
Loading…
Reference in a new issue