TechzoneMC / SonarPet

A fork of EchoPet, updated to 1.11
https://ci.techcable.net/job/SonarPet/
GNU General Public License v3.0
19 stars 16 forks source link

Wither Shields #81

Open L4BORG opened 7 years ago

L4BORG commented 7 years ago

... activation would make Wither invisible.

screen

L4BORG commented 7 years ago

https://github.com/DSH105/EchoPet/blob/06947a8b08ce40be9a518c2982af494b3b99d140/modules/v1_8_R3/src/main/java/com/dsh105/echopet/compat/nms/v1_8_R3/entity/type/EntityWitherPet.java#L47

should be 1 || 0

Techcable commented 7 years ago

@L4BORG I don't understand. 1 || 0 isn't a valid expression.

L4BORG commented 7 years ago

... should be 1 or 0

L4BORG commented 7 years ago

https://github.com/TechzoneMC/SonarPet/blob/e97fae2b9b377d7afa1f619c178f25b0d828d58b/core/src/main/java/net/techcable/sonarpet/nms/entity/type/EntityWitherPet.java#L22

getEntity().getDataWatcher().setInteger(SHIELDED_METADATA_ID, (flag ? 1 : 0));