We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dae4905 commit 5fc1b9cCopy full SHA for 5fc1b9c
src/main/js/modules/utils/utils.js
@@ -300,7 +300,12 @@ exports.getMousePos = function getMousePos( player ) {
300
if ( !player.getTargetBlock ) {
301
return null;
302
}
303
- targetedBlock = player.getTargetBlock( null, 5 );
+ try {
304
+ targetedBlock = player.getTargetBlock( null, 5 );
305
+ }catch (e){
306
+ // spigot 1.8.7 adds new overload which causes problems with JDK 7
307
+ targetedBlock = player['getTargetBlock(java.util.Set,int)'](null, 5 );
308
+ }
309
if ( targetedBlock == null || targetedBlock.isEmpty() ) {
310
311
0 commit comments