TeamDman / SuperFactoryManager

Mozilla Public License 2.0
36 stars 15 forks source link

Fix wrong facing after placement of Block Gate #4

Closed MarcoRauscher closed 5 years ago

MarcoRauscher commented 5 years ago

This change sets the block state during onBlockPlacedBy to properly reflect Direction and Facing.

Also changes breaker.setMetaData(getMetaFromState(state)) to breaker.setMetadata(facing.getIndex()) because state is the state passed to onBlockPlacedBy without taking into consideration the player's facing.

Fixes #3

TeamDman commented 5 years ago

Thanks!